how to pass data between 2 components of android?
Answer / Lalit Kumar Verma
There are several ways to pass data between Android components such as Activities and Services. One common method is using Intent extras, where you can put data in the form of primitives, Strings, or Parcelable objects and retrieve it on the receiving side. Another approach is using shared preferences or a singleton class for global data storage. For larger amounts of data, you might consider using an SQLite database or remote services like ContentProviders or REST APIs.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to send SMS in android? Explain with example.
Describe a real time scenario where android can be used
Explain fragment.
What is the APK format in Android?
How to handle an audio stream for call in android?
What is main/jni/ directory?
What is a buildtype in gradle?
What is an anr?
What is the permission you need to declare in androidmanifes?
Can android run exe?
What is @inject in android?
How to mention an activity in manifest file?