A Laboratory Manual For - Bharati Vidyapeeth

Transcription

A Laboratory Manual forMobile ApplicationDevelopment(22617)Semester– VI(CO/CW/CM/IF)Maharashtra StateBoard of Technical Education, Mumbai(Autonomous)(ISO-9001-2008) (ISO/IEC27001:2013)

Maharashtra StateBoard of Technical Education, Mumbai(Autonomous) (ISO-9001-2015) (ISO/IEC 27001:2013)4th Floor, Government Polytechnic Building, 49, Kherwadi,Bandra (East), Mumbai -400051.(Printed on November 2019)

Maharashtra StateBoard of Technical EducationCertificateThis is to certify that Mr. / Ms. .Roll No . of Sixth Semester of Diploma in . of Institute . . (Code )has completed the term work satisfactorily in subject MobileApplication Development (22617) for the academic year20 .to 20 . as prescribed in the curriculum.Place .Date: .Subject TeacherEnrollment No Exam Seat No. .Head of the DepartmentSeal oftheInstitutePrincipal

Mobile Application Development (22617)PrefaceThe primary focus of any engineering laboratory/field work in the technical education systemis to develop the much-needed industry relevant competencies and skills. With this in view,MSBTE embarked on this innovative ‘I’ Scheme curricula for engineering Diplomaprogrammes with outcome-based education as the focus and accordingly, relatively largeamount of time is allotted for the practical work. This displays the great importance oflaboratory work making each teacher, instructor and student to realize that every minute of thelaboratory time need to be effectively utilized to develop these outcomes, rather than doingother mundane activities. Therefore, for the successful implementation of this outcome-basedcurriculum, every practical has been designed to serve as a ‘vehicle’ to develop this industryidentified competency in every student. The practical skills are difficult to develop through‘chalk and duster’ activity in the classroom situation. Accordingly, the ‘I’ scheme laboratorymanual development team designed the practical’s to focus on outcomes, rather than thetraditional age-old practice of conducting practical’s to ‘verify the theory’ (which maybecome a byproduct along the way).This laboratory manual is designed to help all stakeholders, especially the students, teachersand instructors to develop in the student the pre-determined outcomes. It is expected fromeach student that at least a day in advance, they have to thoroughly read the concernedpractical procedure that they will do the next day and understand minimum theoreticalbackground associated with the practical. Every practical in this manual begins by identifyingthe competency, industry relevant skills, course outcomes and practical outcomes which serveas a key focal point for doing the practical. Students will then become aware about the skillsthey will achieve through procedure shown there and necessary precautions to be taken, whichwill help them to apply in solving real-world problems in their professional life.This manual also provides guidelines to teachers and instructors to effectively facilitatestudent-centered lab activities through each practical exercise by arranging and managingnecessary resources in order that the students follow the procedures and precautionssystematically ensuring the achievement of outcomes in the students.This manual is intended for the Third-Year students of Computer & Information Technology.This manual typically contains practical’s related to Android studio covering various aspectsrelated to the subject for enhanced understanding. Students are advised to thoroughly gothrough this manual rather than only topics mentioned in the curriculum. Mobiles, tablets andelectronic gadgets are very popular and widely used as a requisite to run our life smoothly.And this is the reason Mobile Application Development Environments like Android OS,Symbian OS etc. are popular and fastest growing environments which are widely used bySmartphone, Tablets, and equipment’s. This course is designed to introduce and familiarizestudents of computer engineering with such a popular environment so that respective skills onthese environments help them as skill development and enhancement, placement assistance,and for their career growth.Although all care has been taken to check for mistakes in this laboratory manual, yet it isimpossible to claim perfection especially as this is the first edition. Any such errors andsuggestions for improvement can be brought to our notice and are highly welcome.Maharashtra State Board of Technical Educationi

Mobile Application Development (22617)Programme Outcomes (POs) to be achieved through Practicals of thisCourseFollowing programme outcomes are expected to be achieved significantly out of the tenprogramme outcomes and Computer Engineering programme specific outcomes through thepracticals of the course on Mobile Application Development.PO 1.Basic knowledge: Apply knowledge of basic mathematics, sciences and basicengineering to solve the broad-based Computer related problems.PO 2.Discipline knowledge: Apply Computer engineering discipline - specific knowledgeto solve core computer engineering related problems.PO 3.Experiments and practice: Plan to perform experiments and practices to use theresults to solve broad-based Computer related problems.PO 4.Engineering tools: Apply relevant Computer programming tools with anunderstanding of the limitations.PO 5.The engineer and society: Assess societal, health, safety, legal and cultural issuesand the consequent responsibilities relevant to practice in field of Computerengineering.PO 6.Environment and sustainability: Apply Computer engineering solutions also forsustainable development practices in societal and environmental contexts anddemonstrate the knowledge and need for sustainable development.PO 7.Ethics: Apply ethical principles for commitment to professional ethics,responsibilities and norms of the practice also in the field of Computer engineering.PO 8.Individual and teamwork: Function effectively as a leader and team member indiverse/ multidisciplinary teams.PO 9.Communication: Communicate effectively in oral and written form.PO 10. Life-long learning: Engage in independent and life-long learning activities in thecontext of technological changes in the Computer engineering field and alliedindustry.Maharashtra State Board of Technical Educationii

Mobile Application Development (22617)Practical- Course Outcome matrixCourse Outcomes (COs)a. Interpret features of Android operating system.b. Configure Android environment and development tools.c. Develop rich user Interfaces by using layouts and controls.d. Use User Interface components for android application development.e. Create Android application using database.f. Publish Android applications.Sr.Title of the PracticalCO CO Compare various operating systemswith Android OS.Install and configure java development kit(JDK), android studio and android SDK.Configure android development tools(ADT) plug-in and create androidvirtual deviceDevelop a program to display HelloWorld on screen.Develop a program to implement linearlayout and absolute layout.Develop a program to implement framelayout, table layout and relative layout.Develop a program to implement TextView and Edit Text.Develop a program to implement AutoComplete Text View.Develop a program to implementButton, Image Button and ToggleButton.Develop a program to implement loginwindow using above UI controls.Develop a program to implementCheckbox.Develop a program to implement RadioButton and Radio Group.Develop a program to implementProgress Bar.Develop a program to implement ListView, Grid View, Image View and ScrollView.Develop a program to implementCustom Toast Alert.Develop a program to implement Dateand Time Picker.Maharashtra State Board of Technical EducationCOd.COe.COf. ------ ----- ------ ----- ----- ----- ---- ---- ---- ----- ---- ---- ---- ---- ----- --iii

Mobile Application Development 1.32.Develop a program to create an activity.Develop a program to implement newactivity using explicit intent and implicitintent.Develop a program to implementcontent provider.Develop a program to implementservice.Develop a program to implementbroadcast receiver.Develop a program to implementsensors.Develop a program to build Camera.Develop a program for providing Bluetoothconnectivity.Develop a program for animation.Perform Async task using SQLite.Create sample application with loginmodule. (Check username andpassword) On successful login, ChangeTextView “Login Successful”. And onlogin fail, alert user using Toast “Loginfail”.Create login application where you willhave to validate username and passwordtill the username and password is notvalidated, login button should remaindisabled.Develop a program toa) Send SMS b)Receive SMSDevelop a program to send and receivee-mail.Deploy map based application.Part IDeploy map based application.Part IIMaharashtra State Board of Technical Education-- ----- -- iv

Mobile Application Development (22617)List of Industry Relevant SkillsThe following industry relevant skills of the competency “Create simpleAndroid applications” are expected to be developed in you by performingpracticals of this laboratory manual.1. Interpret features of Android operating system.2. Configure Android environment and development tools.3. Develop rich user Interfaces by using layouts and controls.4. Use User Interface components for android application development.5. Create Android application using database.6. Publish Android applications.Brief Guidelines to TeachersHints regarding strategies to be used1. Teacher shall explain prior concepts to the students before starting eachexperiment.2. For practical’s requiring tools to be used, teacher should provide thedemonstration of the practical emphasizing the skills, which the studentshould achieve.3. Involve students in the activities during the conduct of each experiment.4. Teachers should give opportunity to students for hands-on after thedemonstration.5. Assess the skill achievement of the students and COs of each unit.6. Teacher is expected to share the skills and competencies to bedeveloped in the students.7. Teacher should ensure that the respective skills and competencies aredeveloped in the students after the completion of the practical exercise.8. Teacher may provide additional knowledge and skills to the studentseven though that may not be covered in the manual but are expectedfrom the students by the industries.9. Teacher may suggest the students to refer additional related literature ofthe reference books/websites/seminar proceedings.10. During assessment teacher is expected to ask questions to the studentsto tap their knowledge and skill related to that practical.Maharashtra State Board of Technical Educationv

Mobile Application Development (22617)Instructions for StudentsStudent shall read the points given below for understanding the theoreticalconcepts and practical applications.1.Students shall listen carefully the lecture given by teacher aboutimportance of subject, learning structure, course outcomes.2.Students shall organize the work in the group of two or threemembers and make a record of all observations.3.Students shall understand the purpose of experiment and its practicalimplementation.4.Students shall write the answers of the questions during practical.5.Student should feel free to discuss any difficulty faced during theconduct of practical.6.Students shall develop maintenance skills as expected by the industries.7.Student shall attempt to develop related hands on skills and gain confidence.8.Students shall refer technical magazines; websites related to thescope of the subjects and update their knowledge and skills.9.Students shall develop self-learning techniques.10. Students should develop habit to submit the write-ups on the scheduled datesand time.Maharashtra State Board of Technical Educationvi

Mobile Application Development (22617)Content PageList of Practicals and Progressive Assessment itle of the practicalPageNo.Compare various operating systemswith Android OS.Install and configure javadevelopment kit(JDK), androidstudio and android SDK.Configure android developmenttools (ADT)plug-in and createandroid virtual device.Develop a program to display HelloWorld on screen.Develop a program to implementlinear layout and absolute layout.Develop a program to implementframe layout, table layout andrelative layout.Develop a program to implementText View and Edit Text.Develop a program to implementAutoComplete Text View.Develop a program to implementButton, Image Button and ToggleButton.Develop a program to implementlogin window using above UIcontrols.Develop a program to implementCheckbox.Develop a program to implementRadio Button and Radio Group.Develop a program to implementProgress Bar.Develop a program to implementList View, Grid View, Image Viewand Scroll View.Develop a program to implementCustom Toast Alert.Develop a program to implementDate and Time Picker.Maharashtra State Board of Technical EducationDate ofperformanceDate ofsubmissionAssessmentmarks (25)Dated sign.of teacherRemarks(if any)15914202631364148545964697682vii

Mobile Application Development 1.32.Develop a program to create anactivity.Develop a program to implementnew activity using explicit intentand implicit intent.Develop a program to implementcontent provider.Develop a program to implementservice.Develop a program to implementbroadcast receiver.Develop a program to implementsensors.Develop a program to buildCamera.Develop a program for providingBluetooth connectivity.Develop a program for animation.Perform Async task using SQLite.Create sample application withlogin module. (Check usernameand password) On successfullogin, Change Text View “LoginSuccessful” and on login fail, alertuser using Toast “Login fail”.Create login application whereyou will have to validate usernameand password till the usernameand password is not validated,login button should remaindisabled.Develop a program toa) Send SMS b) Receive SMSDevelop a program to send andreceive e-mail.Deploy map-based application.Part IDeploy map-based application.Part tal MarksTotal Marks (Scaled to 25 Marks) To be Transferred to Proforma of CIAAN-2017Maharashtra State Board of Technical Educationviii

Mobile Application Development (22617)Practical No. 1: Compare various operating systems with Android OS.I.Practical SignificanceAndroid is an Operating System for mobile devices developed by Google,which is built upon Linux kernel. Android competes with Apple's iOS (foriPhone/iPad), RIM's Blackberry, Microsoft's Windows Phone, SymbianOS, and many other proprietary mobile. The latest Android supportsPhone/Tablet, TV, Wear (watch and glass), Automobile and Internet ofthings.II.Relevant Program Outcomes (POs)PO1. Basic knowledgePO2. Discipline knowledgePO10. Life-long learningIII.Competency and Practical Skills“Create simple Android applications.”This practical is expected to develop the following skills1. Able to identify the different operating systems.2. Able to distinguish between various operating systems.3. Able to identify the features of various operating systems. (Windows,Linux, Unix and Android)IV.Relevant Course Outcome(s)Interpret features of Android operating system.V.Practical Outcome (PrOs)Compare various operating systems with Android OS.VI.Relevant Affective Domain Related Outcome(s)1. Work collaboratively in team.2. Follow ethical Practices.VII.Minimum Theoretical BackgroundOperating system basics like definition of operating systems, features of operatingsystems. What is the need of operating systems? Basic architecture of operatingsystems. Different types of operating systems. Distinguishing points between differentoperating systems. Android is an open source and Linux-based Operating System formobile devices such as smartphones and tablet computers. Android was developed bythe Open Handset Alliance, led by Google, and other companies. Android offers aunified approach to application development for mobile devices which meansdevelopers need to develop only for Android, and their applications should be able torun on different devices powered by Android. The first beta version of the AndroidSoftware Development Kit (SDK) was released by Google in 2007, whereas the firstcommercial version, Android 1.0, was released in September 2008. On June 27, 2012,at the Google I/O conference, Google announced the next Android version, 4.1 JellyBean. Jelly Bean is an incremental update, with the primary aim of improving the userMaharashtra State Board of Technical Education1

Mobile Application Development (22617)interface, both in terms of functionality and performance. The source code for Androidis available under free and open source software licenses. Google publishes most ofthe code under the Apache License version 2.0 and the rest, Linux kernel changes,under the GNU General Public License version 2.VIII. Resources required ntityRemarks1.2.IX.Practical related QuestionsNote: Below given are few sample questions for reference. Teachers mustdesign more such questions to ensure the achievement of identified CO.1. List different Android O.S. versions.2. State characteristics of android operating system(Space for answers).Maharashtra State Board of Technical Education2

Mobile Application Development (22617)X.ExerciseNote: Faculty must ensure that every group of students use different input value.(Use blank space for answers or attach more pages if needed)1. Draw the architectural diagram of Android operating system.2. Differentiate between Windows operating system and Android operating system.(Space for answers).Maharashtra State Board of Technical Education3

Mobile Application Development (22617)XI.References / Suggestions for further Reading1. https://www.tutorialspoint.com/android2. https://stuff.mit.edu3. https://www.tutorialspoint.com/android/android advanced tutorial.pdf4. https://developer.android.comXII.Assessment Scheme1.2.3.4.5.6.7.Performance indicatorsProcess related (10 Marks)Logic FormationDebugging abilityFollow ethical practicesProduct related (15 Marks)Interactive GUIAnswer to Practical related questionsExpected OutputTimely SubmissionTotal (25 Marks)Weightage30%10%15%5%70%20%20%20%10%100%List of student Team Members1. .2. .3 .4 Dated signature ofTeacherMarks ObtainedProcessProductRelated(10) Related(15)Maharashtra State Board of Technical EducationTotal(25)4

Mobile Application Development (22617)Practical No. 2: Install and configure java development kit (JDK),Android studio and android SDK.I.Practical SignificanceAndroid is based on Linux with a set of native core C/C libraries. Androidapplications are written in Java. However, they run on Android's own Java VirtualMachine, called Dalvik Virtual Machine (DVM) (instead of JDK's JVM) which isoptimized to operate on the small and mobile devices. SDK provides a selection oftools required to build Android apps or to ensure the process goes as smoothly aspossible. Whether creating an app with Java, Kotlin or C#, SDK should run on anAndroid device and access unique features of the OS.II.Relevant Program Outcomes (POs)PO 1. Basic knowledgePO 2. Discipline knowledgePO 7. EthicsIII.Competency and Practical Skills“Create simple Android applications.”This practical is expected to develop the following skills1. Able to know the android operating system installation and configuration steps.2. Able to install different versions of android operating system using theknowledge of installation and configuration steps.IV.Relevant Course Outcome(s)Configure Android environment and development tools.V.Practical Outcome (PrOs)Install and configure java development kit (JDK), android studio and android SDK.VI.Relevant Affective Domain Related Outcome(s)1. Work collaboratively in team2. Follow ethical Practices.VII.Minimum Theoretical BackgroundStep 1 - Setup Java Development Kit (JDK) You can download the latest version ofJava JDK from Oracle's Java site: Java SE Downloads. You will find instructions forinstalling JDK in downloaded files, follow the given instructions to install andconfigure the setup. Finally, set PATH and JAVA HOME environment variables torefer to the directory that contains java and javac, typically java install dir/bin andjava install dir respectively. If you are running Windows and have installed the JDKin C:\jdk1.6.0 15, you would have to put the following line in yourC:\autoexec.batfile.setPATH C:\jdk1.6.0 15\bin;%PATH%set JAVA HOME C:\jdk1.6.0 15Step 2 - Setup Android SDK You can download the latest version of Android SDKMaharashtra State Board of Technical Education5

Mobile Application Development (22617)from Android’s official website: http://developer.android.com/sdk/index.html. If youare installing SDK on Windows machine, then you will find ainstaller rXXwindows.exe, so just download and run this exe which will launch Android SDK ToolSetup wizard to guide you throughout the installation, so just follow the instructionscarefully. Finally, you will have Android SDK Tools installed on your machine. If youare installing SDK either on Mac OS or Linux, check the instructions provided alongwith the downloaded android-sdk rXX-macosx.zip file for Mac OS and androidsdk rXX-linux.tgz file for Linux. This tutorial will consider that you are going tosetup your environment on Windows machine having Windows 7 operating system.Step 3 - Setup Android Development Tools (ADT) Plugin This step will help you insetting Android Development Tool plugin for Eclipse. Let's start with launchingEclipse and then, choose Help Software Updates Install New Software. This willdisplay the following dialogue box.Step 4 - Create Android Virtual Device to test your Android applications you willneed a virtual Android device. So before we start writing our code, let us create anAndroid virtual device. Launch Android AVD Manager using Eclipse menu optionsWindow AVD Manager which will launch Android AVD Manager. Use Newbutton to create a new Android Virtual Device and enter the following information,before clicking Create AVD button.VIII. Resources required antity RemarksIX.Practical related QuestionsNote: Below given are few sample questions for reference. Teachers must designmore such questions to ensure the achievement of identified CO.1. List all the steps to install android operating system2. List various IDEs that can be used to execute android

d. Use User Interface components for android application development. e. Create Android application using database. f. Publish Android applications. Sr. No. Title of the Practical CO a. CO b. CO c. CO d. CO e. CO f. 1. Compare various operating systems with Android OS. - - - - - 2. Install and configure java development kit (JDK), android .