Vaibhav Ahire

Vaibhav Ahire

112 Articles Published

Articles by Vaibhav Ahire

Page 4 of 12

How to create a custom shaped bitmap marker with Android maps API?

Vaibhav Ahire
Vaibhav Ahire
Updated on 08-May-2023 989 Views

Introduction Many android applications nowadays use Google Maps within it to display the map to the users. For example we use many food delivery applications in which we can get to see our order status along with the location of the delivery boy on Google Maps. We can get to see different types of markers on each of the application depending on their use case. In this article we will take a look on How to create a custom shaped bitmap marker with android maps API? Implementation We will be creating a simple application in which we will be displaying ...

Read More

How to close an Android application gracefully?

Vaibhav Ahire
Vaibhav Ahire
Updated on 08-May-2023 1K+ Views

Introduction In many android applications we can see that when the application is being closed an animation is added to it which will close the application by displaying a closing animation to it. This will make the application user interface better. In this article we will take a look on How to close an Android application gracefully ? Implementation We will be creating a simple application in which we will be creating a text view in which we will be displaying the heading of our application. After that we will be creating a button which we will be using to ...

Read More

How to check programmatically if an application is installed or not in Android?

Vaibhav Ahire
Vaibhav Ahire
Updated on 08-May-2023 4K+ Views

Introduction Many times in android applications we have to take help of some other applications from our application. We have to open another application from our application. For example if we want to open a Google map from our application to show the route between two locations. Before opening the Google Maps we have to firstly check whether the Google Maps application is currently installed on the user device. In this article we will take a look at How we can check whether the application is installed or not. Implementation We will be creating a simple application in which we ...

Read More

How do I return a boolean from AsyncTask in Android?

Vaibhav Ahire
Vaibhav Ahire
Updated on 08-May-2023 695 Views

Introduction Async Task is a class in android which is being used to perform some background long running tasks such as loading the images from the internet in background. If the image is huge in size then we can load that image from the internet as a background task using AsyncTask in Android. In this article we will take a look at How to return a boolean from an Async Task in Android. Implementation We will be creating a simple application in which we will be displaying a text view for heading of the application. Then we are creating one ...

Read More

How can I record a Video in my Android app?

Vaibhav Ahire
Vaibhav Ahire
Updated on 08-May-2023 4K+ Views

Introduction Video Recording is a most common feature which we can currently get to see in many android applications. This feature is mostly seen used in payments applications where the application has to verify the identity of the user for authentication as well as doing their KYC. In this article we will take a look on How to record a video within our android application. We will be building a simple android application in which we will be displaying a button and a video view in which when a user clicks on a button we will record a video and ...

Read More

How can I read SMS messages from the device programmatically in Android?

Vaibhav Ahire
Vaibhav Ahire
Updated on 08-May-2023 7K+ Views

Introduction Many times in android applications we get to see that the app reads sms from the users mobile device and displays that within the application. Such as when we are creating an sms application we display the sms from users mobile device within our application. In this article we will take a look on How can i read sms messages from the device programmatically in Android. Implementation We will be creating a simple application in which we will be creating a text view in which we will be displaying the heading of the application. After that we will be ...

Read More

How can I do something like a FlowLayout in Android?

Vaibhav Ahire
Vaibhav Ahire
Updated on 08-May-2023 870 Views

Many times in android applications we have to explain to the user about the step by step guide for performing a certain task within an application such as How to book a service which is being provided within our application. For that we have to display a detailed guide on this in the form of flow layout. In this article we will take a look on How to create something like a Flow Layout in Android. Implementation We will be creating a simple application in which we will be displaying a simple text view. After creating this text view we ...

Read More

How can I check if the Android phone is in Landscape or Portrait?

Vaibhav Ahire
Vaibhav Ahire
Updated on 08-May-2023 2K+ Views

Introduction Many times while launching a specific screen for an android application, we have to check the orientation of the device whether the device is in portrait mode or a landscape mode. In this article we will take a look at How we can check if the Android phone is in Landscape mode or a portrait mode. Implementation We will be creating a simple application in which we will be displaying two text views. First text view we will be using it to display the heading of our application. In the second text view we will be displaying the ...

Read More

FrameLayout VS AbsoluteLayout in Android?

Vaibhav Ahire
Vaibhav Ahire
Updated on 08-May-2023 883 Views

Introduction Frame Layout and Absolute Layout are two different layouts used for developing an Android application. Frame layout is simply used to display a single child view in a stacked layout, where UI elements are placed on top of each other in a stacked manner. It is similar to that of Relative Layout which is used to display multiple UI Elements. Whereas Absolute Layout is used to specify the exact location of elements on the screen. Absolute Layout is less flexible to maintain different screen sizes. What is Frame Layout in Android? Frame Layout is a View Group class which ...

Read More

Difference between getContext(), getApplicationContext(), getBaseContext() and this in android?

Vaibhav Ahire
Vaibhav Ahire
Updated on 08-May-2023 3K+ Views

What is Context in Android? A Context gives us information about the current state of an application. It allows us to interact with Android Components. It allows us to access files and other resources such as pictures, Activities, Fragments and Services. In Android getContext(), getApplicationContext(), getBaseContext(), this are the methods to retrieve different types of Context objects. The Context Class provides access to several resources and services that are needed to build an Android application including − Resources − The resources such as layouts, images and strings which are stored in resource objects are accessed through the Context. System ...

Read More
Showing 31–40 of 112 articles
« Prev 1 2 3 4 5 6 12 Next »
Advertisements