Learn free android tutorials


Best Practices for adding .gitignore file in Android projects

August 13, 2021 ·  1 min read

This tutorials talks about which files in android project are commited and which files are not ignored to git repository. gitignore is a text file which contains list of files or patterns are excluded while commiting an android project. Following are list of files and patters for gitignore files java files are compiled to class files so class files are not required to commit to repository # Java class files *....


How do you configure build and version number in Android application

August 12, 2021 ·  2 min read

This short tutorials talks about how to get build and version number of an android application. Android code base uses gradle build tool which we can configured in build.gradle as seen below These will be located inside the app gradle file build.gradle: with defaultConfig defaultConfig { applicationId "com.cb.myapp" minSdkVersion 20 targetSdkVersion 29 versionCode 18 versionName "1.0" } versionCode is a number specify the version number of an application submitted to market versionName is an string specify the version name ie....


Subscribe
You'll get a notification every time a post gets published here.