Android

Android Creating Complex Layouts using ConstraintLayout

Android ConstraintLayout helps you to create large and complex layouts with a flat view hierarchy without nested view groups. This helps to create high performing layouts. Android Studio’s Layout Editor makes it really easy to define the constraints for the views. ConstraintLayout, which is now the default layout in Android Studio, gives you many ways […]

Android Creating Complex Layouts using ConstraintLayout Read More »

Android Getting Started With Constraint Layout

In this tutorial, you’ll learn the basics of creating Android views by using ConstraintLayout to build the UI of your application. A great Android app not only needs to have a beautiful UI but also optimized performance. Android provides various types of layouts that use different methods to contain child views and determine their positions. Layouts

Android Getting Started With Constraint Layout Read More »

Android Options Menu Example

Android Options Menu The options menu is the primary collection of menu items for an activity. It’s where you should place actions that have a global impact on the app, such as “Search” “Compose email” and “Settings.” You can declare items for the options menu from either your Activity subclass or a Fragment subclass. If both your activity and fragment(s) declare

Android Options Menu Example Read More »

Android GoogleMap Example to Draw Route Between Two Locations

In this article, we will discuss how to draw route between two locations in GoogleMap using Directions API. Directions API The Directions API is a service that calculates directions between locations using an HTTP request. With the Directions API, you can: Search for directions for several modes of transportation, including transit, driving, walking or cycling.

Android GoogleMap Example to Draw Route Between Two Locations Read More »

Android Working with GoogleMap

Android Google Map Android provides facility to integrate Google map in our application by using Maps SDK for Android API. With the Maps SDK for Android, you can add maps based on Google Maps data to your application. The API automatically handles access to Google Maps servers, data downloading, map display, and response to map

Android Working with GoogleMap Read More »

Android Get current and Nearby Places Using Places SDK

The Google Play Services version of the Places SDK for Android (i.e. com.google.android.gms:play-services-places) is turned off on July 29, 2019. Now a new version of the Places SDK for Android is available which depends on AndroidX. In this article, we will talk about how to get current and nearby places of user’s device using a new Google

Android Get current and Nearby Places Using Places SDK Read More »

Android Runtime Permissions with Dexter

Android Marshmallow includes a new functionality to let users grant or deny permissions when running an app instead of granting them all when installing it. This approach gives the user more control over applications but requires developers to add lots of code just to get a single permission. In this article, we will talk about

Android Runtime Permissions with Dexter Read More »

Android Get Current Location Using Fused Location Provider

In this article, we will talk about what a fused location provider is and how to use it to get the current location using a sample Android application. We need not explicitly choose either GPS provider or Network location provider, as the “Fused Location Provider” automatically chooses the underlying technology and gives the best location

Android Get Current Location Using Fused Location Provider Read More »

Android Working with Runtime Permission

Every Android application is started in its own process thus are isolated from all other applications (even from system/default applications). As a result, an Android application can’t access any file or data outside its scope until and unless the file or data is shared with the application. So, the conclusion is that if an application

Android Working with Runtime Permission Read More »

Android ViewPager with Mediaplayer

In the previous article, we have talked about ViewPager to create swipe views in Android application in greater detail. In this article, we will talk about how to add buttons in different pages of viewPager, how to play and stop song on button click using MediaPlayer and also how to work with Mediaplayer on page scrolled.

Android ViewPager with Mediaplayer Read More »