Login
Remember
Register
Ask a Question
what are the differences between class, file and activity in Android?
0
votes
asked
Jan 1, 2024
in
Android
by
DavidAnderson
what are the differences between class, file and activity in Android?
android-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 1, 2024
by
DavidAnderson
The difference between them is as follows:
Class is a compiled form of a .java file that Android uses to produce an executable .apk file.
A file is a block of arbitrary information or resources used for storing information. It can be of any file type.
Activity is a single screen that represents GUI(Graphical User Interface) with which users can interact in order to do something like dial the phone, view email, etc.
...