Vaibhav Ahire has Published 121 Articles

FrameLayout VS AbsoluteLayout in Android?

Vaibhav Ahire

Vaibhav Ahire

Updated on 08-May-2023 15:23:21

297 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 ... Read More

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

Vaibhav Ahire

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 ... Read More

Difference between FragmentPagerAdapter and FragmentStatePager Adapter

Vaibhav Ahire

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 ... Read More

Changing API version in Android Studio

Vaibhav Ahire

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 ... Read More

Android Runtime Permissions

Vaibhav Ahire

Vaibhav Ahire

Updated on 08-May-2023 15:01:55

2K+ Views

Introduction In many android applications nowadays we can get to see the application asks for permission to use a specific feature during runtime. For example the application which uses a device camera asks for camera permission during the runtime of the application, from that user can provide or reject the ... Read More

How to handle TransactionTooLargeException in Android?

Vaibhav Ahire

Vaibhav Ahire

Updated on 04-Apr-2023 10:32:43

1K+ Views

Introduction Handling a TransactionTooLargeException in Android is a common issue that most developers have encountered. The exception usually occurs when an app is trying to send or receive a large chunk of data, which exceeds the maximum size limit of the Android operating system. If the size of the data ... Read More

How to play HTML5 video on fullscreen in android WebView?

Vaibhav Ahire

Vaibhav Ahire

Updated on 30-Mar-2023 14:49:47

4K+ Views

Introduction Many android applications use WebView with their applications to display the webpages to the user. This web page many times contains videos embedded within it. Such as many applications that open youtube inside the WebView to be displayed within their application. When the application user opens any video from ... Read More

Which one is better in between SQLite and Shared Preferences?

Vaibhav Ahire

Vaibhav Ahire

Updated on 30-Mar-2023 14:48:15

2K+ Views

Introduction There are many storage service providers in android applications which we can use to store data within our android application. We can store data in our android application in different ways such as by using SQLite database, Room Database, Shared Preferences and many more. Each of them has their ... Read More

What is the difference between match_parent and fill_parent in Android ?

Vaibhav Ahire

Vaibhav Ahire

Updated on 30-Mar-2023 14:47:18

2K+ Views

Introduction An android application consists of different types of views within it such as image view, text view, buttons and many others. For this different type of view we have to specify the size of that view to be displayed on the screen. We can provide a custom size ... Read More

Difference between add(),replace() and addToBackStack() in Android

Vaibhav Ahire

Vaibhav Ahire

Updated on 30-Mar-2023 14:45:46

928 Views

Introduction Android is an open-source, user-friendly mobile operating system used by millions of people around the world. It is the most popular mobile operating system, and its popularity is only growing. Android offers a wide range of features and functions, and its developers have made sure that users can customize ... Read More

Previous 1 ... 3 4 5 6 7 ... 13 Next
Advertisements