Skip to main content
6 events
when toggle format what by license comment
Jan 24, 2020 at 17:58 comment added Ishaan Kumar difference is BuilConfig is provided by Gradle whereas getting it at runtime is by PackageManager (OS)
Aug 19, 2018 at 2:30 comment added CrandellWS Try using this guide: medium.com/@manas/…
Oct 5, 2016 at 19:55 comment added MikeL There are cases when calling this in your project may get different result from what you would expect. For example if you use an android submodule in your project and you call it from the code of the submodule it will reference to build config of the submodule which may have different version. Or if you call it from the code of your project you may reference by mistake to build config of your submodule and get the same result. Just be careful and double check that you reference to a proper package of the build config.
Apr 6, 2016 at 9:12 comment added Mullazman Habit. Fair enough
Apr 4, 2016 at 19:52 comment added Makotosan BuildConfig.VERSION_NAME is already a string, no need to call toString() on it.
Jan 8, 2016 at 5:02 history answered Mullazman CC BY-SA 3.0