Compiled set of tutorials covering a wide range of topics to help you with Android application development.
Use the following code snippet to, get Android application version from code. The PackageInfo class provides overall information…
Use the following code snippet to, add an option in app that allow user to rate and review your app on Google Play or Amazon store. You can call getPackageName() and construct the Intent to open the on Google play app using Intent.ACTION_VIEW.
Firebase Invites are an out-of-the-box solution for app referrals and sharing via email or SMS. Firebase Android SDK…
Since then many people are asking questions like how to use Decorators and how to disable some dates in CustomCalendarView. In this post we will disable all the dates that are past.
Use the following code snippets to turn on and off wifi on Android devices. Switch toggle = (Switch)…
In this tutorial, we will see how to configure and use Firebase Cloud Messaging platform in your Android application.
After you release your app to market, it is important to study how people use your application to…
The Android YouTubePlayer allows you to customize the playback control by setting one of the style defined in YouTubePlayer.PlayerStyle enum. You can apply style to YouTubePlayer by calling setPlayerStyle method.
The following code snippet shows how to convert device specific pixels to density independent pixels. It returns a float value to represent dp equivalent to px value.
The following code snippet shows how to determine the screen size dimensions in width and height of the Android device your application is running on.
The following code snippet will help you to disables the SSL certificate checking for new instances of HttpsURLConnection in Android. You can use this code for testing purpose only and remove when moving to production.
This env.rb file provides setup and common functionality across all features. It's included first before every test run, and the methods provided here can be used in any of the step definitions used in a test. This is a great place to put shared data like the location of your app, the capabilities you want to test with, and the setup of selenium.