This Presentation slide include all the basic things that need to know a beginner to start his/her android career. Even though this slide presentation for beginner but mid level developer also could be benefited.
Prajakta Dharmpurikar's presentation discusses fundamentals of Android development. It covers basics like what Android is, its software stack and versions. It explains core application components like activities, services, broadcast receivers and content providers. It also discusses intents, the Android manifest file and building a simple "Hello World" Android app. The presentation provides an overview of creating an Android project structure and running an app.
The document discusses Android application development. It provides an overview of Android including a brief history, licensing, code access, versions and basics. It describes the Android software stack including the Linux kernel, libraries, Dalvik virtual machine, application framework and applications. It also covers application fundamentals such as user interaction, screen characteristics, density dependence, screen configuration and application components.
This document provides an overview of Android programming. It defines Android as an open-source operating system and development platform for mobile devices. Key points covered include Android's version history, core features and capabilities, the software stack and development framework, important terminology, and application fundamentals. Native Android applications like email, SMS, and maps are also briefly mentioned.
Android is a software stack developed by Google for building mobile apps. It includes an operating system, middleware, and key apps. Developers use the Android SDK and Eclipse IDE to build Android apps. The SDK includes tools like an emulator and debugger. Common Android versions include Cupcake, Donut, Eclair, Froyo, Gingerbread, Honeycomb, Ice Cream Sandwich, Jelly Bean, and KitKat. The emulator allows testing apps on a virtual mobile device without using a physical device.
Android Seminar || history || versions||application developement Shubham Pahune
Android is an open source software platform and operating system for mobile devices. It is based on the Linux kernel and allows developers to write managed code using Java. Google developed Android originally and later formed the Open Handset Alliance. Key aspects include its use of Java, Dalvik virtual machine, app marketplace, and open source nature. It has gone through several versions labeled after dessert names. Development tools include Android Studio, the official IDE, and requires installing the Java Development Kit and Android SDK.
Learn Android app development in easy stepsMobile Pundits
Mobile Pundits is a leading provider of Outsource Mobile Development & Mobile Testing services. If you are looking for to develop any android application to grow your business fast, kindly visit our official website wwwdotmobilepunditsdotcom
Android is an open-source operating system based on the Linux kernel. It was developed by the Open Handset Alliance, a consortium of technology companies including Google. Some key features of Android include an application framework for building reusable apps, the Dalvik virtual machine for running apps, and integrated core apps like a browser and SQLite for data storage. Future possibilities for Android include overtaking iPhone sales by 2012 and expanding beyond mobile devices to products like GPS units and set-top boxes.
Android is an open source software stack that includes an operating system, middleware and key applications for mobile devices. It was developed by Google and the Open Handset Alliance. The document provides an overview of Android including its history, components, architecture, application development process, and resources for developers. It describes Android's goal of making the mobile platform more open and customizable for users and developers.
This document outlines the major project of building a web app. It discusses that a web app is an app that runs in a web browser and acts like a native mobile app. It then discusses features of Android studio, the differences between web and native apps, requirements for building the app like hardware, software and SDK requirements. It also discusses key attributes like activities, layouts and views used in building the app. Finally, it provides screenshots of the installation, user interface and references used.
This presentation gives detailed overview of Android, Android Architecture, Software Stack, Platform, Database Support, Licensing, File System, Network Connectivity, Security and Permissions, IDE and Tools, Other IDEs Overview, Development Evaluation, Singing your application, Versioning your application, Preparing to publish your application, Publish your App on Android Market. This presentation also includes links to sample exampled.
Note: Few slides from this presentation are taken from internet or slideshare.com as it is or modified little bit. I have no intention of saying someone’s else work as mine. I prepared this presentation to just educate co-workers about android. So I want the best material from internet and slideshare.com.
Android is an open source operating system designed primarily for touchscreen mobile devices. It uses Linux for core functions like memory and process management and includes features like an open application marketplace (Google Play), built-in security protections, and regular updates to newer platform versions codenamed after desserts. Android's flexibility allows it to run on a variety of hardware, expand its functionality through customization, and offer developers an easy environment to create applications for a wide user base.
- Android is an open source software platform for mobile devices based on the Linux kernel and managed by the Open Handset Alliance. It allows developers to write managed code in Java for the applications layer.
- The Android software stack includes the Linux kernel, native libraries, the Android runtime (which includes a Java virtual machine called Dalvik), and the Application Framework layer where Android applications run.
- Android applications are built using the Android SDK and its tools which allow compilation of Java code into an executable .apk file that can be installed and run on Android devices.
This presentation is a primer on Android and Android app development. You will learn the business case, benefits and advantages of using Android platform and Android apps over the other platforms. In essence, this is your essential guide to kick-start your journey on Android!
This document provides an overview of Android mobile application development including:
- Android is an open source software stack for mobile devices including an operating system, middleware, and key applications.
- The Android software architecture includes components like the Linux kernel, libraries, Android runtime, application framework, and applications.
- Key building blocks for Android applications include activities, intents/intent receivers, services, and content providers.
- The Android SDK and Eclipse IDE can be used for application development along with emulators and real devices.
The document provides an introduction to the Android environment including:
- What Android is and the companies involved in its development like Google and the Open Handset Alliance.
- An overview of the Android software stack including the Linux kernel, libraries, application framework and Dalvik virtual machine.
- Different versions of the Android OS from 1.5 to 2.4 and their major features.
- How the Android environment is growing with over 350,000 new Android devices being activated daily.
This is a basic crash course for android development covers:
Android Studio,Hello World Application,Application Components,Application Resources,User Interface,Good UI,Play Store
This document provides an overview of setting up the Android development environment and creating basic Android projects. It discusses downloading the Java Development Kit (JDK), Eclipse IDE, and Android SDK. It also explains how to install the Android Development Tools (ADT) plugin for Eclipse and configure the SDK and AVD Manager. The document demonstrates how to create a simple "Hello World" project and tabbed application. It also provides information on accessing sensors like GPS and accelerometers as well as using local SQLite and remote databases with Android applications.
Android Pie, the latest release of Android, is officially available to World. In this talk, I will summarize new features and behaviour changes. This session will be useful for developers as well product managers who are getting their apps ready for Android 9.
This document discusses Android, an open source software stack for mobile devices. It is a complete system comprising an operating system, middleware, and key applications. Android is developed as part of the Open Handset Alliance and is powered by the Linux kernel. It uses Java for application development and includes APIs for graphics, data storage, media, Bluetooth, WiFi and more. Developers write Android apps in Java, which are then compiled to Dalvik bytecode and run on Android devices.
This document provides an overview of mobile application development using Android. It discusses Android's architecture including the Linux kernel layer, libraries layer, Android runtime layer, application framework layer, and applications layer. It describes key Android components like activities, services, broadcast receivers, content providers, and intents. It also covers the Android development process, tools, requirements and versions.
Custom Android App Development – Web Animation IndiaMarion Welch
Being associate intimate Android App Development Company, our Android dev team offers a guarantee to our purchasers for a wonderful Android app development service that maximizes the potency of their businesses. we tend to ar exploitation fashionable technologies to form a client’s business complete that competes with today’s technology-obsessed world. Our Android developers have a powerful command of Java, C, C++ HTML, CSS that helps them to write down apps for the Android platform. Our Android app development team develops associate app for pretty much all Google Play’s major classes, as well as social networking, travel, utility, diversion, education, e-commerce so on.
This document provides an overview and tutorial on Android application development. It discusses what Android is, its features, and how to set up the development environment, including installing Java, the Android SDK, Eclipse IDE, and configuring an Android virtual device. It also covers Android architecture, application components, and provides a basic "Hello World" example app. The document is intended for beginners to help them understand Android programming.
This document provides an overview of Android app development. It discusses what Android is, its history and architecture. It describes the core components of an Android app like activities, services, content providers and intents. It also discusses Android Studio as the IDE, system requirements, how to develop a first app, common programming languages and learning resources. The goal is to introduce the key concepts for developing Android apps.
The document provides an overview of the Android platform architecture. It describes Android as an open source mobile operating system led by the Open Handset Alliance. The key components of the Android architecture include the Linux kernel, libraries, Android runtime using the Dalvik virtual machine, framework APIs, and applications. Applications are built using activities, services, content providers and broadcast receivers. The document also discusses Android security using a permission-based model.
This slide from Android Application Programming Seminar at a Technical University of Vietnam.
Throughout the slide, audience will have the general knowledge about Android OS, Architecture. The slide also provide the Android Application structure, the choices of framework or language to develop an Android application.
Real Time Audio is an application is written for this seminar.
Everyone can download from Google Play:
https://play.google.com/store/apps/details?id=junoteam.com.realtimerecording
This document discusses native Android development practices and provides an overview of using Spring for mobile web applications and Android development. It covers Spring Mobile features like device detection and site preference management. It then introduces basic Android development concepts like activities, services, and manifest registration. It demonstrates a simple "Hello World" Android activity and discusses Android lifecycles. Finally, it discusses using Maven for Android projects.
Android is an open-source operating system based on the Linux kernel. It was developed by the Open Handset Alliance, a consortium of technology companies including Google. Some key features of Android include an application framework for building reusable apps, the Dalvik virtual machine for running apps, and integrated core apps like a browser and SQLite for data storage. Future possibilities for Android include overtaking iPhone sales by 2012 and expanding beyond mobile devices to products like GPS units and set-top boxes.
Android is an open source software stack that includes an operating system, middleware and key applications for mobile devices. It was developed by Google and the Open Handset Alliance. The document provides an overview of Android including its history, components, architecture, application development process, and resources for developers. It describes Android's goal of making the mobile platform more open and customizable for users and developers.
This document outlines the major project of building a web app. It discusses that a web app is an app that runs in a web browser and acts like a native mobile app. It then discusses features of Android studio, the differences between web and native apps, requirements for building the app like hardware, software and SDK requirements. It also discusses key attributes like activities, layouts and views used in building the app. Finally, it provides screenshots of the installation, user interface and references used.
This presentation gives detailed overview of Android, Android Architecture, Software Stack, Platform, Database Support, Licensing, File System, Network Connectivity, Security and Permissions, IDE and Tools, Other IDEs Overview, Development Evaluation, Singing your application, Versioning your application, Preparing to publish your application, Publish your App on Android Market. This presentation also includes links to sample exampled.
Note: Few slides from this presentation are taken from internet or slideshare.com as it is or modified little bit. I have no intention of saying someone’s else work as mine. I prepared this presentation to just educate co-workers about android. So I want the best material from internet and slideshare.com.
Android is an open source operating system designed primarily for touchscreen mobile devices. It uses Linux for core functions like memory and process management and includes features like an open application marketplace (Google Play), built-in security protections, and regular updates to newer platform versions codenamed after desserts. Android's flexibility allows it to run on a variety of hardware, expand its functionality through customization, and offer developers an easy environment to create applications for a wide user base.
- Android is an open source software platform for mobile devices based on the Linux kernel and managed by the Open Handset Alliance. It allows developers to write managed code in Java for the applications layer.
- The Android software stack includes the Linux kernel, native libraries, the Android runtime (which includes a Java virtual machine called Dalvik), and the Application Framework layer where Android applications run.
- Android applications are built using the Android SDK and its tools which allow compilation of Java code into an executable .apk file that can be installed and run on Android devices.
This presentation is a primer on Android and Android app development. You will learn the business case, benefits and advantages of using Android platform and Android apps over the other platforms. In essence, this is your essential guide to kick-start your journey on Android!
This document provides an overview of Android mobile application development including:
- Android is an open source software stack for mobile devices including an operating system, middleware, and key applications.
- The Android software architecture includes components like the Linux kernel, libraries, Android runtime, application framework, and applications.
- Key building blocks for Android applications include activities, intents/intent receivers, services, and content providers.
- The Android SDK and Eclipse IDE can be used for application development along with emulators and real devices.
The document provides an introduction to the Android environment including:
- What Android is and the companies involved in its development like Google and the Open Handset Alliance.
- An overview of the Android software stack including the Linux kernel, libraries, application framework and Dalvik virtual machine.
- Different versions of the Android OS from 1.5 to 2.4 and their major features.
- How the Android environment is growing with over 350,000 new Android devices being activated daily.
This is a basic crash course for android development covers:
Android Studio,Hello World Application,Application Components,Application Resources,User Interface,Good UI,Play Store
This document provides an overview of setting up the Android development environment and creating basic Android projects. It discusses downloading the Java Development Kit (JDK), Eclipse IDE, and Android SDK. It also explains how to install the Android Development Tools (ADT) plugin for Eclipse and configure the SDK and AVD Manager. The document demonstrates how to create a simple "Hello World" project and tabbed application. It also provides information on accessing sensors like GPS and accelerometers as well as using local SQLite and remote databases with Android applications.
Android Pie, the latest release of Android, is officially available to World. In this talk, I will summarize new features and behaviour changes. This session will be useful for developers as well product managers who are getting their apps ready for Android 9.
This document discusses Android, an open source software stack for mobile devices. It is a complete system comprising an operating system, middleware, and key applications. Android is developed as part of the Open Handset Alliance and is powered by the Linux kernel. It uses Java for application development and includes APIs for graphics, data storage, media, Bluetooth, WiFi and more. Developers write Android apps in Java, which are then compiled to Dalvik bytecode and run on Android devices.
This document provides an overview of mobile application development using Android. It discusses Android's architecture including the Linux kernel layer, libraries layer, Android runtime layer, application framework layer, and applications layer. It describes key Android components like activities, services, broadcast receivers, content providers, and intents. It also covers the Android development process, tools, requirements and versions.
Custom Android App Development – Web Animation IndiaMarion Welch
Being associate intimate Android App Development Company, our Android dev team offers a guarantee to our purchasers for a wonderful Android app development service that maximizes the potency of their businesses. we tend to ar exploitation fashionable technologies to form a client’s business complete that competes with today’s technology-obsessed world. Our Android developers have a powerful command of Java, C, C++ HTML, CSS that helps them to write down apps for the Android platform. Our Android app development team develops associate app for pretty much all Google Play’s major classes, as well as social networking, travel, utility, diversion, education, e-commerce so on.
This document provides an overview and tutorial on Android application development. It discusses what Android is, its features, and how to set up the development environment, including installing Java, the Android SDK, Eclipse IDE, and configuring an Android virtual device. It also covers Android architecture, application components, and provides a basic "Hello World" example app. The document is intended for beginners to help them understand Android programming.
This document provides an overview of Android app development. It discusses what Android is, its history and architecture. It describes the core components of an Android app like activities, services, content providers and intents. It also discusses Android Studio as the IDE, system requirements, how to develop a first app, common programming languages and learning resources. The goal is to introduce the key concepts for developing Android apps.
The document provides an overview of the Android platform architecture. It describes Android as an open source mobile operating system led by the Open Handset Alliance. The key components of the Android architecture include the Linux kernel, libraries, Android runtime using the Dalvik virtual machine, framework APIs, and applications. Applications are built using activities, services, content providers and broadcast receivers. The document also discusses Android security using a permission-based model.
This slide from Android Application Programming Seminar at a Technical University of Vietnam.
Throughout the slide, audience will have the general knowledge about Android OS, Architecture. The slide also provide the Android Application structure, the choices of framework or language to develop an Android application.
Real Time Audio is an application is written for this seminar.
Everyone can download from Google Play:
https://play.google.com/store/apps/details?id=junoteam.com.realtimerecording
This document discusses native Android development practices and provides an overview of using Spring for mobile web applications and Android development. It covers Spring Mobile features like device detection and site preference management. It then introduces basic Android development concepts like activities, services, and manifest registration. It demonstrates a simple "Hello World" Android activity and discusses Android lifecycles. Finally, it discusses using Maven for Android projects.
This document provides an overview of beginning native Android app development. It discusses Android app structure including the manifest, activities, intents and lifecycles. It also covers common Android views and layouts, accessing device capabilities like the camera and location, working with data via content providers, and rendering with OpenGL. Example code is provided for various app features like input handling, scrollable lists, and camera access. The document concludes with the process for submitting an app to the Google Play Store.
Android is an operating system for smartphones and tablets created by Google. Developers write Android applications in Java and can distribute apps through Google Play or other app stores. The document discusses advantages like easy access to apps, disadvantages like lack of documentation, and how to start programming Android apps using the Android SDK and Eclipse IDE. It also covers key Android programming concepts like activities, intents, views, fragments and using XML layouts to define user interfaces.
Lecture #1 Creating your first android projectVitali Pekelis
1. The document discusses setting up a basic Android project structure including an activity, layout, and manifest.
2. It explains how to create an activity class that extends Activity and sets the layout view. The activity is declared in the manifest.
3. Basic instructions are provided for running the app on a real device or emulator from Android Studio.
The document provides information about a mobile application development course including the course teacher, outcomes, units covered, textbooks, and key components of an Android application. The course is taught by Mr. Kiran Khandarkar and covers topics like control flow, directory structure, UI design using layouts, and publishing apps. It also describes the logical components, development flow, project structure, and fundamental elements of an Android screen including activities, views, view groups, and common layouts.
This document provides an overview of an Android application development session that covers the Android framework, Android layouts, and basic UI widgets. The session will discuss the main components of the Android framework - activities, services, broadcast receivers, and content providers. It will explain how to design screens using linear, relative and list views in Android layouts. It will also demonstrate how to add basic widgets like text boxes, buttons, checkboxes and radio buttons to a user interface. Code examples are provided to illustrate how to set up activities, initialize views, and retrieve widget values.
mobile application development -unit-3-TejamFandat
The document discusses various components of mobile application development in Android including control flow, application components like activities and services, Android application directory structure, and layouts. It describes key files like AndroidManifest.xml and important folders like java, drawable, layout, and mipmap. It also explains different types of layouts like linear layout, relative layout, frame layout, and table layout along with code examples.
Presented at Big Android BBQ 2015
Hurst Convention Center, Hurst Texas
This talk will cover Fragments in detail by comparing and contrasting them to something we know well, Activities. We will also cover examples and use cases. Fragments: Why, How, and What For? is targeted toward developers who may not have had a lot of experience using Fragments and those who want to understand them better. Why did Google introduce Fragments? Aren’t Activities enough? How do Fragments work? What For? Example and use cases such as Fragment reuse, single pane vs multi-pane, ViewPager, NavigationDrawer and DialogFragment.
The document discusses various types of user interfaces in Android. It describes the view hierarchy in Android using ViewGroups and Views as the basic building blocks. It explains common layouts like LinearLayout, RelativeLayout, TableLayout, GridLayout and ListView that can be used to arrange views. Key classes involved include View, ViewGroup, and different view subclasses that serve as widgets. The document also compares Java and Android approaches to designing user interfaces.
This document provides an overview of mobile application development for Android. It discusses the Android platform architecture and application framework. The key application building blocks in Android like activities, intents, services and content providers are explained. It also describes the development tools and steps to create a simple "Hello World" application in Android. These include setting up the Android SDK, creating a new project in Eclipse, designing the UI layout and adding code to the activity. The document emphasizes that Android provides APIs for common tasks and uses the Java programming language for application development.
The document provides an overview of Android application development fundamentals including application components, intents, manifest files, and more. It discusses that Android apps are written in Java and compiled to APK files. The core application components are activities, services, broadcast receivers, and content providers. Intents are used to start components and broadcast receivers register to receive system or app events. Every app must declare its components in the Android manifest.
Android is an open source and Linux-based Operating System for mobile devices such as smartphones and tablet computers.
Android offers a unified approach to application development for mobile devices which means developers need only develop for Android, and their applications should be able to run on different devices powered by Android.
Multiple companies producing Android phones like Samsung, HTC, LG, Motorola,LAVA and many others.
Android Application Development (Android Studio, PHP, XML, MySQL)
Developed an Android Application which connects to a cloud database for Update, Retrieve, Edit and Delete queries for Quarter Allotment of Employees.
OBJECTIVES:
1) Design a cloud-based MySQL Database for storing and performing operations of all employee data.
2) Design a User Interface based on Android to enable user to interact with the Database.
3) Implement the above using JAVA, XML and PHP.
SCOPE:
1) Apply (Insert) of Application
2) Modification (Edit) of Application
3) Cancellation (Deletion) of Application
4) Status of Application
The document provides an overview of Android application development. It discusses:
- What Android is and its main software stack components including the operating system, middleware, application framework, and applications.
- The Android architecture including its application components like activities, services, content providers, intents, and broadcast receivers.
- How to get started with Android development by installing the necessary tools and SDK.
- Key aspects of developing Android apps like user interfaces, resources, and the manifest file.
- A simple "Hello World" Android app as an example to demonstrate activities, layouts, strings, and the manifest.
Mobile Application Development Lecture 05 & 06.pdfAbdullahMunir32
The document provides an overview of mobile application development for Android. It discusses the key components of Android applications including activities, services, content providers, intents, broadcast receivers, and notifications. It also covers the Android application lifecycle and manifest file, and describes how to create activities, externalize resources, and install and configure Android Studio.
Hierarchy Viewer is a tool in the Android SDK that allows developers to analyze layout performance and view hierarchies of their apps. It works by connecting to a running device or emulator instance of an app. The Hierarchy Viewer window then loads the view hierarchy and displays information about individual views like each view's properties, layouts, and performance metrics to help optimize UI performance. Demos of Adapter Views with different layouts are shown as examples. The conclusion finds that Hierarchy Viewer is easy to use and can boost design, analysis, and increase UI performance.
ACADGILD:: ANDROID LESSON-How to analyze & manage memory on android like ...Padma shree. T
This Blog is all about memory management in Android. It provides information about how you can analyze & reduce memory usage while developing an Android app.
Memory management is a complex field of computer science and there are many techniques being developed to make it more efficient. This guide is designed to introduce you to some of the basic memory management issues that programmers face.
Procurement Insights Cost To Value Guide.pptxJon Hansen
Procurement Insights integrated Historic Procurement Industry Archives, serves as a powerful complement — not a competitor — to other procurement industry firms. It fills critical gaps in depth, agility, and contextual insight that most traditional analyst and association models overlook.
Learn more about this value- driven proprietary service offering here.
Quantum Computing Quick Research Guide by Arthur MorganArthur Morgan
This is a Quick Research Guide (QRG).
QRGs include the following:
- A brief, high-level overview of the QRG topic.
- A milestone timeline for the QRG topic.
- Links to various free online resource materials to provide a deeper dive into the QRG topic.
- Conclusion and a recommendation for at least two books available in the SJPL system on the QRG topic.
QRGs planned for the series:
- Artificial Intelligence QRG
- Quantum Computing QRG
- Big Data Analytics QRG
- Spacecraft Guidance, Navigation & Control QRG (coming 2026)
- UK Home Computing & The Birth of ARM QRG (coming 2027)
Any questions or comments?
- Please contact Arthur Morgan at [email protected].
100% human made.
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxAnoop Ashok
In today's fast-paced retail environment, efficiency is key. Every minute counts, and every penny matters. One tool that can significantly boost your store's efficiency is a well-executed planogram. These visual merchandising blueprints not only enhance store layouts but also save time and money in the process.
Big Data Analytics Quick Research Guide by Arthur MorganArthur Morgan
This is a Quick Research Guide (QRG).
QRGs include the following:
- A brief, high-level overview of the QRG topic.
- A milestone timeline for the QRG topic.
- Links to various free online resource materials to provide a deeper dive into the QRG topic.
- Conclusion and a recommendation for at least two books available in the SJPL system on the QRG topic.
QRGs planned for the series:
- Artificial Intelligence QRG
- Quantum Computing QRG
- Big Data Analytics QRG
- Spacecraft Guidance, Navigation & Control QRG (coming 2026)
- UK Home Computing & The Birth of ARM QRG (coming 2027)
Any questions or comments?
- Please contact Arthur Morgan at [email protected].
100% human made.
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc
Most consumers believe they’re making informed decisions about their personal data—adjusting privacy settings, blocking trackers, and opting out where they can. However, our new research reveals that while awareness is high, taking meaningful action is still lacking. On the corporate side, many organizations report strong policies for managing third-party data and consumer consent yet fall short when it comes to consistency, accountability and transparency.
This session will explore the research findings from TrustArc’s Privacy Pulse Survey, examining consumer attitudes toward personal data collection and practical suggestions for corporate practices around purchasing third-party data.
Attendees will learn:
- Consumer awareness around data brokers and what consumers are doing to limit data collection
- How businesses assess third-party vendors and their consent management operations
- Where business preparedness needs improvement
- What these trends mean for the future of privacy governance and public trust
This discussion is essential for privacy, risk, and compliance professionals who want to ground their strategies in current data and prepare for what’s next in the privacy landscape.
Semantic Cultivators : The Critical Future Role to Enable AIartmondano
By 2026, AI agents will consume 10x more enterprise data than humans, but with none of the contextual understanding that prevents catastrophic misinterpretations.
Generative Artificial Intelligence (GenAI) in BusinessDr. Tathagat Varma
My talk for the Indian School of Business (ISB) Emerging Leaders Program Cohort 9. In this talk, I discussed key issues around adoption of GenAI in business - benefits, opportunities and limitations. I also discussed how my research on Theory of Cognitive Chasms helps address some of these issues
Linux Support for SMARC: How Toradex Empowers Embedded DevelopersToradex
Toradex brings robust Linux support to SMARC (Smart Mobility Architecture), ensuring high performance and long-term reliability for embedded applications. Here’s how:
• Optimized Torizon OS & Yocto Support – Toradex provides Torizon OS, a Debian-based easy-to-use platform, and Yocto BSPs for customized Linux images on SMARC modules.
• Seamless Integration with i.MX 8M Plus and i.MX 95 – Toradex SMARC solutions leverage NXP’s i.MX 8 M Plus and i.MX 95 SoCs, delivering power efficiency and AI-ready performance.
• Secure and Reliable – With Secure Boot, over-the-air (OTA) updates, and LTS kernel support, Toradex ensures industrial-grade security and longevity.
• Containerized Workflows for AI & IoT – Support for Docker, ROS, and real-time Linux enables scalable AI, ML, and IoT applications.
• Strong Ecosystem & Developer Support – Toradex offers comprehensive documentation, developer tools, and dedicated support, accelerating time-to-market.
With Toradex’s Linux support for SMARC, developers get a scalable, secure, and high-performance solution for industrial, medical, and AI-driven applications.
Do you have a specific project or application in mind where you're considering SMARC? We can help with Free Compatibility Check and help you with quick time-to-market
For more information: https://www.toradex.com/computer-on-modules/smarc-arm-family
Book industry standards are evolving rapidly. In the first part of this session, we’ll share an overview of key developments from 2024 and the early months of 2025. Then, BookNet’s resident standards expert, Tom Richardson, and CEO, Lauren Stewart, have a forward-looking conversation about what’s next.
Link to recording, presentation slides, and accompanying resource: https://bnctechforum.ca/sessions/standardsgoals-for-2025-standards-certification-roundup/
Presented by BookNet Canada on May 6, 2025 with support from the Department of Canadian Heritage.
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Aqusag Technologies
In late April 2025, a significant portion of Europe, particularly Spain, Portugal, and parts of southern France, experienced widespread, rolling power outages that continue to affect millions of residents, businesses, and infrastructure systems.
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...Alan Dix
Talk at the final event of Data Fusion Dynamics: A Collaborative UK-Saudi Initiative in Cybersecurity and Artificial Intelligence funded by the British Council UK-Saudi Challenge Fund 2024, Cardiff Metropolitan University, 29th April 2025
https://alandix.com/academic/talks/CMet2025-AI-Changes-Everything/
Is AI just another technology, or does it fundamentally change the way we live and think?
Every technology has a direct impact with micro-ethical consequences, some good, some bad. However more profound are the ways in which some technologies reshape the very fabric of society with macro-ethical impacts. The invention of the stirrup revolutionised mounted combat, but as a side effect gave rise to the feudal system, which still shapes politics today. The internal combustion engine offers personal freedom and creates pollution, but has also transformed the nature of urban planning and international trade. When we look at AI the micro-ethical issues, such as bias, are most obvious, but the macro-ethical challenges may be greater.
At a micro-ethical level AI has the potential to deepen social, ethnic and gender bias, issues I have warned about since the early 1990s! It is also being used increasingly on the battlefield. However, it also offers amazing opportunities in health and educations, as the recent Nobel prizes for the developers of AlphaFold illustrate. More radically, the need to encode ethics acts as a mirror to surface essential ethical problems and conflicts.
At the macro-ethical level, by the early 2000s digital technology had already begun to undermine sovereignty (e.g. gambling), market economics (through network effects and emergent monopolies), and the very meaning of money. Modern AI is the child of big data, big computation and ultimately big business, intensifying the inherent tendency of digital technology to concentrate power. AI is already unravelling the fundamentals of the social, political and economic world around us, but this is a world that needs radical reimagining to overcome the global environmental and human challenges that confront us. Our challenge is whether to let the threads fall as they may, or to use them to weave a better future.
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell
With expertise in data architecture, performance tracking, and revenue forecasting, Andrew Marnell plays a vital role in aligning business strategies with data insights. Andrew Marnell’s ability to lead cross-functional teams ensures businesses achieve sustainable growth and operational excellence.
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxJustin Reock
Building 10x Organizations with Modern Productivity Metrics
10x developers may be a myth, but 10x organizations are very real, as proven by the influential study performed in the 1980s, ‘The Coding War Games.’
Right now, here in early 2025, we seem to be experiencing YAPP (Yet Another Productivity Philosophy), and that philosophy is converging on developer experience. It seems that with every new method we invent for the delivery of products, whether physical or virtual, we reinvent productivity philosophies to go alongside them.
But which of these approaches actually work? DORA? SPACE? DevEx? What should we invest in and create urgency behind today, so that we don’t find ourselves having the same discussion again in a decade?
4. Android apps development
Md. Moniruzzaman (Monir)
Objectives
After attending this session you are expected to be able to
Create a android project
Activity/Fragment life cycle knowledge
UI Design
Display category-wise/section-wise list of data
Android animation creation
Fragment management
5. Android apps development
Md. Moniruzzaman (Monir)
Android App component
App components are the essential building blocks of an Android app. Each component is an
entry point through which the system or a user can enter your app. Some components
depend on others.
There are four different types of app components:
• Activities.
• Services.
• Broadcast receivers.
• Content providers.
Each type serves a distinct purpose and has a distinct lifecycle that defines how the
component is created and destroyed.
6. Android apps development
Md. Moniruzzaman (Monir)
Android Platform Architecture
Android is an open source, Linux-based software stack created for a wide array
of devices and form factors. The following diagram shows the major components
of the Android platform.
9. Android apps development
Md. Moniruzzaman (Monir)
Activities
Activities are one of the fundamental building blocks of apps on the Android
platform. Skillfully managing activities allows you to ensure that, for example:
• Orientation changes take place smoothly without disrupting the user
experience.
• User data is not lost during activity transitions.
• The system kills processes when it's appropriate to do so.
10. Android apps development
Md. Moniruzzaman (Monir)
Activities
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}
11. Android apps development
Md. Moniruzzaman (Monir)
The Activity Lifecycle
As a user navigates through, the Activity instances in your app transition through
different states in their lifecycle. The Activity class provides a number of callbacks
that allow the activity to know that a state has changed.
Activity-lifecycle concepts: To navigate transitions between stages of the
activity lifecycle, the Activity class provides a core set of six
callbacks: onCreate(), onStart(), onResume(), onPause(), onStop(),
and onDestroy().
continue…
13. Android apps development
Md. Moniruzzaman (Monir)
AndroidManifest.xml
An application can have one or more activities without any restriction. Every
activity you define for your application must be declared in
your AndroidManifest.xml file and the main activity for your app must be
declared in the manifest with an <intent-filter> that includes the MAIN action and
LAUNCHER category .
If either the MAIN action or LAUNCHER category are not declared for one of your
activities, then your app icon will not appear in the Home screen's list of apps.
15. Android apps development
Md. Moniruzzaman (Monir)
Fragments
A Fragment is a piece of an activity which enable more modular activity design.
It will not be wrong if we say, a fragment is a kind of sub-activity.
You create fragments by extending Fragment class and You can insert a
fragment into your activity layout by declaring the fragment in the activity's layout
file, as a <fragment> element.
17. Android apps development
Md. Moniruzzaman (Monir)
Adding a Fragment to an Activity
There are two ways you can add a fragment to the activity layout:
• Declare the fragment inside the activity's layout file:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent">
<fragment android:name="com.example.news.ArticleListFragment"
android:id="@+id/list"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="match_parent" />
<fragment android:name="com.example.news.ArticleReaderFragment"
android:id="@+id/viewer"
android:layout_weight="2"
android:layout_width="0dp"
android:layout_height="match_parent" />
</LinearLayout>
18. Android apps development
Md. Moniruzzaman (Monir)
Adding a Fragment to an Activity
● Or, programmatically add the fragment to an existing ViewGroup:
FragmentManager fragmentManager = getSupportFragmentManager();
FragmentTransaction fragmentTransaction =
fragmentManager.beginTransaction();
You can then add a fragment using the add() method, specifying the fragment to add and the view in
which to insert it. For example:
ExampleFragment fragment = new ExampleFragment();
fragmentTransaction.add(R.id.fragment_container, fragment);
fragmentTransaction.commit();
Note: To replace existing fragment : - fragmentTransaction.replace(R.id.fragment_container, fragment);
19. Android apps development
Md. Moniruzzaman (Monir)
Android-Intents & Filters
An Android Intent is an abstract description of an operation to be performed. It can be used
with startActivity to launch an Activity, broadcastIntent to send it to any interested
BroadcastReceiver components, and startService(Intent) or bindService(Intent,
ServiceConnection, int) to communicate with a background Service.
Types of Intents:
There are following two types of intents supported by Android
20. Android apps development
Md. Moniruzzaman (Monir)
Intents
● Explicit Intents
// Explicit Intent by specifying its class name
Intent i = new Intent(FirstActivity.this, SecondActivity.class);
// Starts TargetActivity
startActivity(i);
● Implicit Intents
Intent read1=new Intent();
read1.setAction(android.content.Intent.ACTION_VIEW);
read1.setData(ContactsContract.Contacts.CONTENT_URI);
startActivity(read1);
21. Android apps development
Md. Moniruzzaman (Monir)
Context
You can get the context by invoking getApplicationContext(), getContext(), getBaseContext(), or this(
when in a class that extends from Context, such as the Application, Activity, Service and IntentService
classes)
Typical uses of context:
Creating new objects: Creating new views, adapters, listeners:
TextView tv = new TextView(getContext()); ListAdapter adapter = new
SimpleCursorAdapter(getApplicationContext(), ...);
Accessing components implicitly: Regarding content providers, broadcasts, intent
getApplicationContext().getContentResolver().query(uri, ...);
22. Android apps development
Md. Moniruzzaman (Monir)
Android Layout
A layout defines the visual structure for a user interface, such as the UI for
an activity or app widget. You can declare a layout in two ways:
• Declare UI elements in XML. Android provides a straightforward XML
vocabulary that corresponds to the View classes and subclasses, such as
those for widgets and layouts.
• Instantiate layout elements at runtime. Your application can create View
and ViewGroup objects (and manipulate their properties) programmatically.
23. Android apps development
Md. Moniruzzaman (Monir)
Layouts Types
There are different view layouts in an android mobile application. The six different
layouts are:
1. Linear Layout
2. Relative Layout
3. Table Layout
4. Frame Layout
5. Coordinator Layout
6. Constraint Layout
24. Android apps development
Md. Moniruzzaman (Monir)
Layout Attributes
● android:id -- This is the ID which uniquely identifies the view.
● android:layout_width -- This is the width of the layout.
● android:layout_height -- This is the height of the layout
● android:layout_marginTop --This is the extra space on the top side of the
layout.
● android:layout_marginBottom --This is the extra space on the bottom side
of the layout.
● android:layout_marginLeft --This is the extra space on the left side of the
layout.
● android:layout_marginRight -- This is the extra space on the right side of
the layout.
25. Android apps development
Md. Moniruzzaman (Monir)
Layout Attributes
● android:layout_gravity --This specifies how child Views are positioned.
● android:layout_weight -- This specifies how much of the extra space in the
layout should be allocated to the View
● android:layout_x -- This specifies the x-coordinate of the layout.
● android:layout_y --This specifies the y-coordinate of the layout.
● android:paddingLeft --This is the left padding filled for the layout.
● android:paddingRight --This is the right padding filled for the layout.
● android:paddingTop -- This is the top padding filled for the layout.
● android:paddingBottom -- This is the bottom padding filled for the layout.
26. Android apps development
Md. Moniruzzaman (Monir)
Layout Attributes
You can specify width and height with exact measurements like dp (Density-
independent Pixels), sp ( Scale-independent Pixels), pt ( Points which is 1/72 of
an inch), px( Pixels), mm ( Millimeters) and finally in (inches).) but more often,
you will use one of these constants to set the width or height −
● android:layout_width=wrap_content tells your view to size itself to the
dimensions required by its content.
● android:layout_width=fill_parent tells your view to become as big as its
parent view.
27. Android apps development
Md. Moniruzzaman (Monir)
ConstraintLayout
To use ConstraintLayout in your project, proceed as follows:
Ensure you have the maven.google.com repository declared in your module-levelbuild.gradle file:
repositories {
maven {
url 'https://maven.google.com'
}
}
Add the library as a dependency in the same build.gradle file:
dependencies {
compile 'com.android.support.constraint:constraint-layout:1.0.2'
}
In the toolbar or sync notification, click Sync Project with Gradle Files.
Now you're ready to build your layout with ConstraintLayout.
28. Android apps development
Md. Moniruzzaman (Monir)
ConstraintLayout
Figure : The Attributes window includes controls for 1 size ratio, 2 delete
constraint, 3 height/width mode, 4margins, and 5 constraint bias.
30. Android apps development
Md. Moniruzzaman (Monir)
Toolbar
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//getting the toolbar
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
//setting the title
toolbar.setTitle("My Toolbar");
//placing toolbar in place of actionbar
setSupportActionBar(toolbar);
}
31. Android apps development
Md. Moniruzzaman (Monir)
Setting up a Menu on the Toolbar
Creating a Menu:
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/menuAbout"
android:title="About" />
<item
android:id="@+id/menuSettings"
android:title="Settings" />
<item
android:id="@+id/menuLogout"
android:title="Logout" />
</menu>
32. Android apps development
Md. Moniruzzaman (Monir)
Setting up a Menu on the Toolbar
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater menuInflater = getMenuInflater();
menuInflater.inflate(R.menu.menu, menu);
return true;
}
33. Android apps development
Md. Moniruzzaman (Monir)
Handling Menu Clicks
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch(item.getItemId()){
case R.id.menuAbout:
Toast.makeText(this, "You clicked about", Toast.LENGTH_SHORT).show();
break;
case R.id.menuSettings:
Toast.makeText(this, "You clicked settings", Toast.LENGTH_SHORT).show();
break;
case R.id.menuLogout:
Toast.makeText(this, "You clicked logout", Toast.LENGTH_SHORT).show();
break;
}
return true;
}
34. Android apps development
Md. Moniruzzaman (Monir)
Navigation Drawer
● The navigation drawer is a UI panel that shows your app's main navigation
menu. It is hidden when not in use, but appears when the user swipes a
finger from the left edge of the screen:
35. Android apps development
Md. Moniruzzaman (Monir)
Add a drawer to into layout
<?xml version="1.0" encoding="utf-8"?>
<!-- Use DrawerLayout as root container for activity -->
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">
<!-- Layout to contain contents of main body of screen (drawer will slide over this) -->
<FrameLayout
android:id="@+id/content_frame"
android:layout_width="match_parent"
android:layout_height="match_parent" />
36. Android apps development
Md. Moniruzzaman (Monir)
Add a drawer to into layout
<!-- Container for contents of drawer - use NavigationView to make configuration easier -->
<android.support.design.widget.NavigationView
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true“
app:menu="@menu/drawer_view"
app:headerLayout="@layout/nav_header" />
</android.support.v4.widget.DrawerLayout>
37. Android apps development
Md. Moniruzzaman (Monir)
Create the menu resource
Create the menu resource with the corresponding file name. For example, at res/menu/drawer_view.xml:
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<group android:checkableBehavior="single">
<item
android:id="@+id/nav_camera"
android:icon="@drawable/ic_menu_camera"
android:title="@string/import" />
<item
android:id="@+id/nav_gallery"
android:icon="@drawable/ic_menu_gallery"
android:title="@string/gallery" />
<item
android:id="@+id/nav_slideshow"
android:icon="@drawable/ic_menu_slideshow"
android:title="@string/slideshow" />
<item
android:id="@+id/nav_manage"
android:icon="@drawable/ic_menu_manage"
android:title="@string/tools" />
</group>
</menu>
38. Android apps development
Md. Moniruzzaman (Monir)
Handle navigation click events
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mDrawerLayout = findViewById(R.id.drawer_layout);
NavigationView navigationView = findViewById(R.id.nav_view);
navigationView.setNavigationItemSelectedListener(
new NavigationView.OnNavigationItemSelectedListener() {
@Override
public boolean onNavigationItemSelected(MenuItem menuItem) {
// set item as selected to persist highlight
menuItem.setChecked(true);
// close drawer when item is tapped
mDrawerLayout.closeDrawers();
// Add code here to update the UI based on the item selected
// For example, swap UI fragments here
return true;
}
});
}
39. Android apps development
Md. Moniruzzaman (Monir)
Android animation
● Adding animations to your app interface will give high quality feel to your android
applications. Animations can be performed through either XML or android code.
● There are 3 types of Animations:
● Property Animations — They are used to alter property of objects (Views or non view
objects).
● View Animations — They are used to do simple animations like changing size,
position, rotation, control transparency.
● Drawable Animations —This is used to do animation using drawables. An XML file
specifying various list of drawables is made which are run one by one just like a roll of a
film. This is not much used so I won’t cover it.
40. Android apps development
Md. Moniruzzaman (Monir)
Android Animation Using XML
Create an xml file which defines type of animation to perform. This file should be
located under anim folder under res directory (res ⇒ anim ⇒ animation.xml). If
you don’t have anim folder in your res directory create one. Following is example
of simple fade in animation.
41. Android apps development
Md. Moniruzzaman (Monir)
Android Animation Using XML
● Create xml that defines the animation: fade_in.xml
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:fillAfter="true" >
<alpha
android:duration="1000"
android:fromAlpha="0.0"
android:interpolator="@android:anim/accelerate_interpolator"
android:toAlpha="1.0" />
</set>
43. Android apps development
Md. Moniruzzaman (Monir)
Animation state listeners
public class FadeInActivity extends Activity implements AnimationListener {
animFadein.setAnimationListener(this);
@Override
public void onAnimationEnd(Animation animation) {
// Take any action after completing the animation
}
@Override
public void onAnimationRepeat(Animation animation) {
// Animation is repeating
}
@Override
public void onAnimationStart(Animation animation) {
// Animation started
}
}
44. Android apps development
Md. Moniruzzaman (Monir)
Start the animation
You can start animation whenever you want by calling startAnimation on any UI element by passing the
type of animation. In this example i am calling fade in animation on TextView:
// start the animation
txtMessage.startAnimation(animFadein);
However instead of xml we can also use android code to create animation such like a class is
ObjectAnimator
ObjectAnimator rotationAnimator =
ObjectAnimator.ofFloat(animateTextView, "rotation", 360f);
rotationAnimator.setDuration(2000);
45. Android apps development
Md. Moniruzzaman (Monir)
Creating Lists and Cards
To create complex lists and cards with material design styles in your apps, you can use
the RecyclerView and CardView widgets.
Figure : The RecyclerView widget.
RecyclerView provides these built-in layout managers:
LinearLayoutManager shows items in a vertical or horizontal scrolling list.
GridLayoutManager shows items in a grid.
StaggeredGridLayoutManager shows items in a staggered grid.
To create a custom layout manager, extend
the RecyclerView.LayoutManager class.
46. Android apps development
Md. Moniruzzaman (Monir)
RecyclerView
<!-- A RecyclerView with some commonly used attributes -->
<android.support.v7.widget.RecyclerView
android:id="@+id/my_recycler_view"
android:scrollbars="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
Once you have added a RecyclerView widget to your layout, obtain a handle to
the object, connect it to a layout manager, and attach an adapter for the data to
be displayed:
47. Android apps development
Md. Moniruzzaman (Monir)
RecyclerView
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.my_activity);
mRecyclerView = (RecyclerView) findViewById(R.id.my_recycler_view);
// use this setting to improve performance if you know that changes
// in content do not change the layout size of the RecyclerView
mRecyclerView.setHasFixedSize(true);
// use a linear layout manager
mLayoutManager = new LinearLayoutManager(this);
mRecyclerView.setLayoutManager(mLayoutManager);
// specify an adapter (see also next example)
mAdapter = new MyAdapter(myDataset);
mRecyclerView.setAdapter(mAdapter);
}
48. Android apps development
Md. Moniruzzaman (Monir)
Adapter
The adapter provides access to the items in your data set, creates views for items, and replaces the content of some of the
views with new data items when the original item is no longer visible.
public class MyAdapter extends RecyclerView.Adapter<MyAdapter.ViewHolder> {
private String[] mDataset;
// Provide a reference to the views for each data item
// Complex data items may need more than one view per item, and
// you provide access to all the views for a data item in a view holder
public static class ViewHolder extends RecyclerView.ViewHolder {
// each data item is just a string in this case
public TextView mTextView;
public ViewHolder(TextView v) {
super(v);
mTextView = v;
}
}
49. Android apps development
Md. Moniruzzaman (Monir)
Adapter
// Provide a suitable constructor (depends on the kind of dataset)
public MyAdapter(String[] myDataset) {
mDataset = myDataset;
}
// Create new views (invoked by the layout manager)
@Override
public MyAdapter.ViewHolder onCreateViewHolder(ViewGroup parent,
int viewType) {
// create a new view
TextView v = (TextView) LayoutInflater.from(parent.getContext())
.inflate(R.layout.my_text_view, parent, false);
// set the view's size, margins, paddings and layout parameters
ViewHolder vh = new ViewHolder(v);
return vh;
}
50. Android apps development
Md. Moniruzzaman (Monir)
Adapter
// Replace the contents of a view (invoked by the layout manager)
@Override
public void onBindViewHolder(ViewHolder holder, int position) {
// - get element from your dataset at this position
// - replace the contents of the view with that element
holder.mTextView.setText(mDataset[position]);
}
// Return the size of your dataset (invoked by the layout manager)
@Override
public int getItemCount() {
return mDataset.length;
}
}
51. Android apps development
Md. Moniruzzaman (Monir)
Different view in adapter
To handle the case where you want different types of view for different rows. For instance,
in a contacts application you may want even rows to have pictures on the left side and odd
rows to have pictures on the right. In that case, you would use:
@Override
public int getViewTypeCount() {
return 2;
}
@Override
public int getItemViewType(int position) {
return position % 2;
}
52. Android apps development
Md. Moniruzzaman (Monir)
Different view in adapter
@Override
public MainVH onCreateViewHolder(ViewGroup parent, int viewType) {
int layoutRes;
switch (viewType) {
case VIEW_TYPE_HEADER:
layoutRes = R.layout.item_header;
break;
case VIEW_TYPE_FOOTER:
layoutRes = R.layout.item_footer;
break;
default:
layoutRes = R.layout.content_swipe;
break;
}
View v = LayoutInflater.from(parent.getContext())
.inflate(layoutRes, parent, false);
return new MainVH(v);
}
53. Android apps development
Md. Moniruzzaman (Monir)
Create Cards
CardView extends the FrameLayout class and lets you show information inside cards that have a consistent look across the
platform. CardView widgets can have shadows and rounded corners.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
... >
<!-- A CardView that contains a TextView -->
<android.support.v7.widget.CardView
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:id="@+id/card_view"
android:layout_gravity="center"
android:layout_width="200dp"
android:layout_height="200dp"
card_view:cardCornerRadius="4dp">
<TextView
android:id="@+id/info_text"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</android.support.v7.widget.CardView>
</LinearLayout>
54. Android apps development
Md. Moniruzzaman (Monir)
Add Dependencies
The RecyclerView and CardView widgets are part of the v7 Support Libraries. To
use these widgets in your project, add these Gradle dependencies to your app's
module:
dependencies {
compile 'com.android.support:cardview-v7:21.0.+'
compile 'com.android.support:recyclerview-v7:21.0.+‘
}
55. Android apps development
Md. Moniruzzaman (Monir)
Android ViewPager
Android ViewPager widget is found in the support library and it allows the user to swipe left or right to
see an entirely new screen.
<android.support.v4.view.ViewPager
android:id="@+id/viewpager"
android:layout_width="match_parent"
android:layout_height="match_parent“/>
@Override protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ViewPager viewPager = (ViewPager) findViewById(R.id.viewpager);
viewPager.setAdapter(new CustomPagerAdapter(this));
}
56. Android apps development
Md. Moniruzzaman (Monir)
PagerAdapter
public class CustomPagerAdapter extends PagerAdapter {
private Context mContext;
public CustomPagerAdapter(Context context) {
mContext = context;
}
@Override public Object instantiateItem(ViewGroup collection, int
position) {
ModelObject modelObject = ModelObject.values()[position];
LayoutInflater inflater = LayoutInflater.from(mContext);
ViewGroup layout = (ViewGroup)
inflater.inflate(modelObject.getLayoutResId(), collection, false);
collection.addView(layout); return layout;
}
57. Android apps development
Md. Moniruzzaman (Monir)
PagerAdapter
@Override
public void destroyItem(ViewGroup collection, int position, Object view) {
collection.removeView((View) view);
}
@Override
public int getCount() { return ModelObject.values().length; }
@Override
public boolean isViewFromObject(View view, Object object) {
return view == object; }
@Override
public CharSequence getPageTitle(int position) {
ModelObject customPagerEnum = ModelObject.values()[position];
return mContext.getString(customPagerEnum.getTitleResId());
}
58. Android apps development
Md. Moniruzzaman (Monir)
PagerAdapter
● CustomPagerAdapter(Context context) : The constructor needs a Context reference. The context is saved as
a member variable of the class since it’s used later to access the individual page layouts from the enum class
● instantiateItem : In this case, we use the enum and inflate the particular enum value’s associated layout. Then,
we add the newly inflated layout to the ViewGroup(collection of Views) maintained by the PagerAdapter, and
then we return that layout. The object being returned by this method is also used later on, as the second
parameter in the isViewFromObject method
● destroyItem : This method removes a particular view from the ViewGroup maintained by the PagerAdapter
● getCount : It simply returns the number of views that will be maintained by the ViewPager. For this example,
the count is the number of enum values in the model object
● isViewFromObject : This method checks whether a particular object belongs to a given position, which is
made simple. As noted earlier, the second parameter is of type Object and is the same as the return value from
the instantiateItem method
● getPageTitle : At a given position, we need to supply the PagerAdapter with a title. This usually manifests itself
in the ActionBar as the Activity’s title, or sometimes tabs will hook into this method for labelling each tab. In this
case we’ve kept it for labelling only
59. Android apps development
Md. Moniruzzaman (Monir)
Assignment Details
Create a Application which have a navigation drawer with two tab option (Home and Food).
1. Home: User can see all order list he/she has already done.
2. Food: User can order any food item from list of category item including every item have a
multiple image showing option by swiping
Note: i) All the item design and layout design will be using only constraint layout and co-
ordinator layout. ii) Home and Food tab will be fragment. Basic features should be same what I
draw on the white board.
(Duration 4 days including today)
60. Android apps development
Md. Moniruzzaman (Monir)
Assignment Guidelines
(There will be toolbar , list of data will be shown using
recyclerview cardview and adapter )
For showing multiple image there will be used viewpager,
adapter
Data list could be static.
For any help conduct with me or any android developer