Using Dependency Injection for the Singleton Design Pattern in Android Apps

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

An advanced IT programming course has been enhanced with app development in the context of Android. To properly carry out such development, it is essential to master data communication among activities, the fundamental app functional units. One important element of such communication is the singleton design pattern (“singleton”). A dependency-injection framework called Hilt is presented as the implementation vehicle for singletons. Examples of Hilt’s usage are presented, and consolidated details for incorporating the Hilt framework into an app are given. Overall, the use of dependency injection enhances students’ programming experiences and complements the object-oriented design component of the course. The students get exposure to additional advanced features of Java, such as annotations.

Original languageEnglish (US)
Title of host publicationProceedings of 25th Annual Conference on Information Technology Education, SIGITE 2024
PublisherAssociation for Computing Machinery, Inc
Pages79-84
Number of pages6
ISBN (Electronic)9798400711060
DOIs
StatePublished - Dec 8 2024
Event25th Annual Conference on Information Technology Education, SIGITE 2024 - El Paso, United States
Duration: Oct 9 2024Oct 11 2024

Publication series

NameProceedings of 25th Annual Conference on Information Technology Education, SIGITE 2024

Conference

Conference25th Annual Conference on Information Technology Education, SIGITE 2024
Country/TerritoryUnited States
CityEl Paso
Period10/9/2410/11/24

All Science Journal Classification (ASJC) codes

  • Computer Networks and Communications

Keywords

  • Activity
  • Android
  • Android app
  • Dependency Injection
  • Hilt
  • Singleton

Fingerprint

Dive into the research topics of 'Using Dependency Injection for the Singleton Design Pattern in Android Apps'. Together they form a unique fingerprint.

Cite this