Found 2041 Articles for Mobile Development

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

Vaibhav Ahire
Updated on 08-May-2023 16:27:13

2K+ 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
Updated on 08-May-2023 15:41:46

342 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
Updated on 08-May-2023 15:39:49

2K+ 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
Updated on 08-May-2023 15:36:02

3K+ 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
Updated on 08-May-2023 15:31:15

389 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
Updated on 08-May-2023 15:27:34

927 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
Updated on 08-May-2023 15:23:21

300 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
Updated on 08-May-2023 15:10:20

971 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

Difference between FragmentPagerAdapter and FragmentStatePager Adapter

Vaibhav Ahire
Updated on 08-May-2023 15:06:47

383 Views

Introduction FragmentPager Adapter and FragmentStatePager Adapter are the two different classes which are used to implement the Pager Adapter within an android application. This pager adapter is used when working with Android’s ViewPager. These pager adapters are responsible for managing the lifecycle of each page which is being displayed within the view pager. The common thing between both of these adapters is that they are the subclass of the PageAdapter class. In this article we will take a look at the Difference between Fragment Pager Adapter and Fragment State Pager Adapter. What is an Adapter in Android? An Android Adapter ... Read More

Changing API version in Android Studio

Vaibhav Ahire
Updated on 08-May-2023 15:04:12

6K+ Views

Introduction First of all before changing an API (Application Programming Interface) Version we have to know what Android API is and what is its use. An Android API in an Application Program Interface which allows us to add specific functionality to our Android application. In simple language Android API are the set of tools used for developing Android Application. The API version is used by developers to ensure their applications are compatible with the current version of the Android operating system. It is also used by Android phones to determine which applications are compatible with their device. The API version ... Read More

Previous 1 ... 6 7 8 9 10 ... 205 Next
Advertisements