Browsing Category
Android
139 posts
Compiled set of tutorials covering a wide range of topics to help you with Android application development.
Convert Speech to Text in Android Application
Many of the cool Android features are remained untouched by app developers. For example, Android SDK has the…
How to Programmatically Get Application Version in Android?
Use the following code snippet to, get Android application version from code. The PackageInfo class provides overall information…
How to Use Custom Chrome Tab in Android
Chrome Custom Tabs gives apps more control over their web experience and make transitions between native and web…
How to Add Rate On Google Play Button in Android
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.
Invite People to Download App Using Firebase AppInviteInvitation
Firebase Invites are an out-of-the-box solution for app referrals and sharing via email or SMS. Firebase Android SDK…
How to Disable Past Dates in Custom Calendar View Android
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.
How to Use Firebase Crash Reporting in Android
Firebase crash reporting automatically logs the crashes and custom events. In this tutorial we will see how use Firebase Crash Reporting in Android.
Code Snippet: Turn on and off Wi-Fi using Android API
Use the following code snippets to turn on and off wifi on Android devices. Switch toggle = (Switch)…
How to Add Click Listener to Android Switch
A Switch is a two-state toggle switch widget that can select between two options. Add Switch control to…
How to Integrate Firebase Cloud Messaging for Android
In this tutorial, we will see how to configure and use Firebase Cloud Messaging platform in your Android application.
How to Integrate Google Firebase Analytics for Android
After you release your app to market, it is important to study how people use your application to…
Quick Settings Tile API Example in Android N
Quick settings are undoubtedly one of the most popular features in Android devices. It provides a convenient way…
How to Customize YouTubePlayer Controls in Android
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.
How to Send an Email with Attachment in Android
The following code snippet shows to send an email with image attachment in Android using Intent method.
How to Convert Pixels to Density Independent (DP) Pixels
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.
Convert DP Unit to Equivalent Pixels in Android
The following code snippet shows how to converts dp unit to equivalent pixels, depending on device density. It returns a float value to represent px equivalent to dp depending on device density.
How to Add an Event to Android Calendar
The following code snippet shows how to add event in Android calendar using intent method.
How to Determine Android Screen Size Width and Height
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.
How to Trust All Certificates for HttpURLConnection in Android
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.
Sample env.rb File for Setting up Android Testing Using Appium and Ruby
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.