1 of 13

Orientation

ANDROID PROGRAMMING

(BHCS20A) SKILL-ENHANCEMENT ELECTIVE COURSE - (SEC)

2 of 13

  • Android is an open source and Linux-based Operating System for mobile devices such as smartphones and tablet computers.
  • Android was developed by the Open Handset Alliance, led by Google, and other companies.
  • 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.

3 of 13

  • Language Used for Android App Development is Java as per University Syllabus. (other option is Kotlin)
  • Android programming is based on Java programming language so if you have basic understanding on Java programming then it will be a fun to learn Android application development.

4 of 13

  • Android Studio is used as IDE.

  • Android Studio is the official integrated development environment for Google's Android operating system designed specifically for Android development. 

5 of 13

6 of 13

The paper provides an introduction to development of mobile application on android platform. �

The topics include the

    • Android development environment,
    • activities,
    • fragments,
    • user interfaces,
    • intents,
    • broadcast sender/receivers,
    • services,
    • notifications,
    • SQLite database handling.

7 of 13

Course Learning Outcomes

On successful completion of the course, you will be able to:

1. Describe characteristics of Android operating system

2. Describe components of an android applications

3. Design user interfaces using various widgets, dialog boxes, menus

4. Define interaction among various activities/applications using intents, broadcasting, services

5. Develop Android applications that require database handling

8 of 13

Detailed Syllabus

  • Unit 1 Introduction: Review to JAVA & OOPS Concepts, History of Android, Introduction to Android Operating Systems, Android Development Tools, Android Architecture, Android components including activities, view and view group, services, content providers, broadcast receivers, intents, parcels, instance state.

  • Unit 2 User Interface Architecture: application context, intents: explicit intents, returning results from activities, implicit intents, intent filter and intent resolution, and applications of implicit intents, activity life cycle, activity stack, application’s priority and its process’ states, fragments and its life cycle.

9 of 13

  • Unit 3 User Interface Design: Layouts, optimizing layout hierarchies, form widgets, text fields, button control, toggle buttons, spinners, images, menu, dialog.

  • Unit 4 Broadcast receivers, notifications and services: Broadcast sender, receiver, broadcasting events with intents, listening for broadcasts with broadcast receivers, broadcasting ordered intents, broadcasting sticky intents, pending intents, creating notifications, setting and customizing the notification tray UI. Create, start, and stop services, binding services to activities, using a sync tasks to manage background processing, handler, looper and runnable

  • Unit 5 Database and Content provider: SQLite, Content Values and Cursors, creating SQLite databases, querying a database, adding, updating, and removing rows, Creating Content Providers, implement content provider’s queries and its usage.

10 of 13

Practical

  • 1. Create “Hello World” application. That will display “Hello World” in the middle of the screen in the emulator. Also display “Hello World” in the middle of the screen in the Android Phone.
  • 2. Create an application with three buttons (increment, decrement and reset) and a textView aligned vertically. On clicking, increment/decrement button, the value of the textview should increment/decrement by 1while selecting reset button, the value of textview should become zero.
  • 3. Create an application with login module. (Check username and password).
  • 4. Create spinner with strings taken from resource folder (res >> value folder) and on changing the spinner value, Image will change.
  • 5. Create a menu with 5 options and selected option should appear in text box.
  • 6. Create a list of all courses in your college and on selecting a particular course teacher-in- charge of that course should appear at the bottom of the screen.
  • 7. Create an application with three option buttons, on selecting a button colour of the screen will change.
  • 8. Create an application to display various activity life cycle and fragment life cycle methods.
  • 9. Create an application with 2 fragments, one to set the background and other to set the fore-color of the text.

11 of 13

  • 10. Create an application with an activity having EditText and a button (with name “Send”). On clicking Send button, make use of implicit intent that uses a Send Action and let user select app from app chooser and navigate to that application.
  • 11. Create a Login application. On successful login, use explicit intent to second activity displaying welcome message (Welcome Username) to the user and a logout button. When user presses logout button, a dialog box with a message (“Are you sure you want to exit?”) and two buttons (“Yes” and “No”) should appear to confirm logout. On “Yes” button click, go to login activity and on “No”, stay on the same activity.
  • 12. Create an application for Broadcast sender and receivers.
  • 13. Create an application to create notification having icon, text and title.
  • 14. Create an application to create services.
  • 15. Create an application to Create, Insert, update, Delete and retrieve operation on the database.

12 of 13

References

  • 1. Griffiths, D., & Griffiths, D., (2015). Head First Android Development, O'reilly Media.
  • 2. Meier, R.,(2012). Professional AndroidTM 4 Application Development. John Wiley & Sons, Inc. Additional

Resources:

  • 1. Murphy, M. L. (2018). The Busy Coder’s Guide to Android Development, CommonsWare
  • 2. Phillips, B., Stewart, C., Hardy, B. & Marsicano, K. (2015). Android Programming: The Big Nerd Ranch Guide.Big Nerd Ranch. Guides.
  • 3. Sheusi, J. C. (2013). Android Application Development for Java Programmers. Cengage Learning.

13 of 13

THANKS

-Dr. Shikha Agrawal