Vaibhav Ahire has Published 121 Articles

What is the difference between START_STICKY and START_NOT_STICKY while implementing

Vaibhav Ahire

Vaibhav Ahire

Updated on 09-May-2023 17:17:49

984 Views

Introduction Here are some of the steps to implement services in android Create a Service class: The first step is to create a Service class that extends the android.app.Service class. This class will define the behavior of the service. Start the service: You need to call startService() method with ... Read More

Difference between getDefaultSharedPreferences and getSharedPreferences in Android

Vaibhav Ahire

Vaibhav Ahire

Updated on 09-May-2023 17:15:53

570 Views

What is Sharedpreferences in Android ? SharedPreferences is an interface in the Android framework that allows you to save and retrieve key-value pairs of primitive data types. SharedPreferences is the way in which Android stores user preferences, such as which theme a user has selected, or whether or not sound ... Read More

Difference between compileSdkVersion and targetSdkVersion

Vaibhav Ahire

Vaibhav Ahire

Updated on 09-May-2023 17:14:26

6K+ Views

Introduction An SDK (Software Development Kit) provides a set of tools such as libraries, tools and API to the developer for building the application for a specific platform. The SDK Version refers to the version of android platform that an app is built against. Each Version of the Android SDK ... Read More

Difference between a View's margin and padding in Android

Vaibhav Ahire

Vaibhav Ahire

Updated on 09-May-2023 17:13:13

2K+ Views

Introduction Padding and margin are two of the most important attributes used to manage the positioning of the views to be displayed within the android application. Both of this attributes are used to change the position of a view but there are some differences between them. In this article we ... Read More

Difference between Android Activity Context and Application Context

Vaibhav Ahire

Vaibhav Ahire

Updated on 09-May-2023 17:06:43

2K+ Views

What is Context? 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. The Context Class provides access to several resources and services that ... Read More

What does @hide mean in the Android source code?

Vaibhav Ahire

Vaibhav Ahire

Updated on 09-May-2023 16:41:30

430 Views

What is the meaning of the keyword ? Keywords are the unique words which are present in android source code to add a specific action for a function within an android application. Keywords are already defined with a certain set of actions to it. When we add a keyword in ... Read More

Vertical Scrollview in Android

Vaibhav Ahire

Vaibhav Ahire

Updated on 09-May-2023 16:39:19

299 Views

Introduction Android provides various UI components which we can use to create different UI components within our android application such as image view, text view and many more. Among this UI component a vertical scroll view is a powerful UI component which is used to create dynamic and interactive applications. ... Read More

Strikethrough Text in Android

Vaibhav Ahire

Vaibhav Ahire

Updated on 09-May-2023 16:25:25

2K+ Views

Introduction In many android applications we can get to see that a text view is being striked through a line on it. We can get to see this type of text view in most of the ecommerce applications where the original price of the product is striked through with the ... Read More

StackView in Android

Vaibhav Ahire

Vaibhav Ahire

Updated on 09-May-2023 16:12:46

733 Views

Introduction Many times while developing an android application, we have to display a set of data in the form of a stack. For example if we are displaying a bundh of cards within our application we can display those cards in the form of a stack in our android application. ... Read More

Service vs Intentservice in Android

Vaibhav Ahire

Vaibhav Ahire

Updated on 09-May-2023 16:10:09

2K+ Views

Introduction Service is a component in Android that runs in the background for performing specific tasks or long running operations without the interaction with the user interface. The main objective of the Service is to ensure that the service remains active in the background and the user can multiple applications ... Read More

1 2 3 4 5 ... 13 Next
Advertisements