Difference Between getDefaultSharedPreferences and getSharedPreferences in Android

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

1K+ 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 should be enabled. This data is stored in an XML file, and can be accessed by multiple activities in an app. Storing Data at Activity Level While developing an Android application if you want to store / access data at activity level then you can use getPreferences. The main difference ... Read More

Difference Between compileSdkVersion and targetSdkVersion

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

9K+ 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 corresponds to a specific version of the Android operating System. For Example Android 11 has an SDK version of 30, while Android 10 has an SDK version of 29 and so on. When developing an Android app, it's essential to understand the difference between compileSdkVersion and targetSdkVersion. These two terms ... Read More

Difference Between a View's Margin and Padding in Android

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

3K+ 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 will take a look at What is the difference between a View’s margin and a padding in Android ? What is padding in android ? Padding is a space which is present between the content which we have to display and the border of that content. Padding is used to ... Read More

Find Siblings of Tags Using BeautifulSoup

Atharva Shah
Updated on 09-May-2023 17:11:13

1K+ Views

Data may be extracted from websites using the useful method known as web scraping and a popular Python package for web scraping is BeautifulSoup which offers a simple method for parsing HTML and XML documents, enabling us to extract certain data from web sites. Finding the siblings of a tag is a frequent task while scraping web pages and it can be defined as a tag's siblings are any additional tags that have the same parent as the primary tag. We will go through using BeautifulSoup to locate tags' siblings in this blog article. Installation and Setup To use ... Read More

Difference Between Android Activity Context and Application Context

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

5K+ 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 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 Services − It provides access to system services such as Power Manger, Notification Manager and Location ... Read More

Create Basic Collapsibles Using jQuery Mobile

Aman Gupta
Updated on 09-May-2023 17:04:17

205 Views

Overview The jQuery mobile provides the enhanced version of the simple jQuery, as the jQuery mobile provides responsive content and designs for all types of screens. So before starting to build the collapsible we should know about the feature. A collapsible is a web component which statically shows the heading or main content of the data and on clicking the heading it expands and shows the whole information about the heading. We can also build the collapsible using normal jQuery but it will not provide the responsive design and layout. jQuery Mobile Content Delivery Network (CDN) Links Before starting to ... Read More

Create Animations Using Relative Value in jQuery

Aman Gupta
Updated on 09-May-2023 17:02:29

403 Views

Overview The relative values are the values which are incremented or decremented with respect to any units. In the relative while performing the animation the object is not reset to its initial position but it starts growing from its current state. So to create a relative value animation can be achieved by using the jQuery ‘animate()’ method with any selector element. So we will learn how to use the relative value with animate method in jQuery with an example which will help you to learn about the relative value and animation. Syntax The syntax of the animate() method with respect ... Read More

Create Animated Typing Effect Using Typed.js

Aman Gupta
Updated on 09-May-2023 17:00:08

3K+ Views

Overview Typed.js is an animation library supported by java script and other scripting languages. It provides the typing animation effect to the text. We can use this library by adding the CDN link of the library or by installing it using node package manager (NPM) or yarn. It gives a webpage with the typing animations in any paragraph or headings. So to know more about the typed.js typing animation effect. To use the animation the types.js provides a constructor named as typed() which takes two arguments as input. Syntax The syntax used to create the object of the constructor types ... Read More

Create Animated Banner Links Using HTML and CSS

Aman Gupta
Updated on 09-May-2023 16:58:35

5K+ Views

Overview We can create animated banners using the HTML and CSS, HTML provides the layout of the banner and CSS provides the styling of the banners with the animations. Sometimes in the banners which are made for advertisement purpose links are embedded to them, so to highlight the link to the user of the web page the developer makes the link animated so it can be visible throughout the web content and that should increase the interest of the users to click it. Syntax The syntax to create a link in the HTML is − Algorithm Step 1 − Create ... Read More

Create Outline Button in Bootstrap 4

Aman Gupta
Updated on 09-May-2023 16:49:14

574 Views

Overview Bootstrap is a Cascading Styles Sheet (CSS) framework which provides us with a different style and layout of buttons. So to use the bootstrap buttons we need to import the Content Delivery Network (CDN) link of bootstrap to our HTML document, the link can be imported from the official page of bootstrap. The official page provides the link in various bootstrap versions. To create the outline button using the bootstrap we need to import the certain classes to our HTML element. These classes are btn, btn-outline-colorName. We can change the color of the button by replacing the colorName with ... Read More

Advertisements