Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
what are the differences between class, file and activity in Android?
Home
Android
what are the differences between class, file and activity in Android?
0
votes
asked
Jan 1
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
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.
Related questions
0
votes
Q: What is an activity in android?
asked
Jan 1
in
Android
by
DavidAnderson
android-questions-answers
0
votes
Q: What are differences between Activities from Services?
asked
Jan 1
in
Android
by
DavidAnderson
android-questions-answers
0
votes
Q: Mention the difference between class, file and activity in Android?
asked
Aug 31, 2023
in
Android
by
Robindeniel
activity
android
0
votes
Q: Which of the following components of the Android runtime is specially designed and optimized for Android to ensure that a device can run multiple instances efficiently?
asked
Oct 14, 2022
in
Android
by
AdilsonLima
android-questions-answers
0
votes
Q: What is Google Android SDK? Which are the tools placed in Android SDK?
asked
Jan 1
in
Android
by
DavidAnderson
android-questions-answers
0
votes
Q: The following components are part of the Android SDK, except ________.
asked
Oct 14, 2022
in
Android
by
AdilsonLima
android-questions-answers
0
votes
Q: What is context in Android?
asked
Jan 1
in
Android
by
DavidAnderson
android-questions-answers
0
votes
Q: What is an intent in Android?
asked
Jan 1
in
Android
by
DavidAnderson
android-questions-answers
0
votes
Q: Explain about the dialog boxes supported on Android?
asked
Jan 1
in
Android
by
DavidAnderson
android-questions-answers
0
votes
Q: Explain about the Sensors in Android.
asked
Jan 1
in
Android
by
DavidAnderson
android-questions-answers
...