Using Dependency Injection for the Singleton Design Pattern in Android Apps

Document Type

Conference Proceeding

Publication Date

12-8-2024

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.

Identifier

85215972018 (Scopus)

ISBN

[9798400711060]

Publication Title

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

External Full Text Location

https://doi.org/10.1145/3686852.3689655

First Page

79

Last Page

84

This document is currently not available here.

Share

COinS