Material design is becoming standard in Android application. With the release of AppCompat and Design Support Library, developers can use it easily to implement material design in Android Application.
With backward compability support until API Level 7, we can bring consistent design across various Android version.
In this talk, I showed various tool and library projects maintained by Onebit engineers. We also discussed checklists and best practice on maintaining and contributing to software projects in open-source world.
Android application has unique identifier called package name to prevent duplicate installation. The standard convention name for Android package name is reversed web URL.
In development process, developers may need to separate application into some versions for testing purpose. For example, we need beta version to be tested before it’s released on the marketplace. We can separate them using different flavors definition in gradle script.
But it can be problem when we use the package name in the manifest file. So we may need to adjust the manifest too.
For example, if we use GCM (Google Cloud Messaging) to enable push notification we need to add permission with unique name (so it has to be the package name). So for different package name it need different permission or there will be problem with duplicate permission. Here we need to define another permission with specified package name and remove the previous permission definition when merging the manifest.
These are the sample code of different manifest file for different package name in different flavor.
<uses-permission android:name="com.packagename.app.permission.C2D_MESSAGE" />
<uses-permission android:name=”com.betapackage.app.permission.C2D_MESSAGE” />