This one is a pretty small but useful tip.
For people who don’t know about it, Android provides a class by the name ApplicationInfo.
As stated by the docs, this class provides information about your application and it collected from the Android Manifest’s <application>
tag.
It might not sound useful right now, but may come handy for some use cases :
- Data directory for your app :
- Checking if the app is debuggable or not
- Name of the process of your application
- Default Task Affinity of all the activities in the application
- Full path to the base apk of the application
Let me know in case of any doubts.
Cheers !
Comments
Post a Comment