Found 1631 Articles for Android

Text Styling With Spans in Android

Sabid Ansari
Updated on 19-Jun-2023 11:04:53

227 Views

Introduction When it comes to text formatting and styling in Android, Spannable strings offer a powerful, flexible approach that goes beyond what can be achieved with simple TextViews. From changing the text color to adding clickable links or even custom fonts, Spannable strings provide a myriad of possibilities. In this guide, we'll explore how to use spans to style text in your Android applications. Understanding Spans In Android, a "span" refers to a way to style text at a character or paragraph level by attaching one or more markup objects to a range of text. The Android framework offers several ... Read More

Text Highlighter in Android

Sabid Ansari
Updated on 19-Jun-2023 12:43:19

595 Views

Introduction Highlighting text is a useful feature that helps to draw attention to specific sections of text in an application. This capability can be especially useful in e-reader apps, educational apps, or any application that involves processing and interacting with text. In this guide, we'll explore how to implement a text highlighter feature in Android. Understanding Text Highlighting Text highlighting refers to changing the appearance of specific parts of a text, typically by altering the background color. This approach is used to emphasize certain words, phrases, or sections, making them stand out from the rest of the text. How to ... Read More

Task Hijacking in Android

Sabid Ansari
Updated on 19-Jun-2023 12:44:48

461 Views

Introduction In the world of cybersecurity, task hijacking in Android represents a crucial issue for developers, users, and security professionals. This term refers to a technique used by malicious actors to manipulate or take over tasks in Android, leading to significant vulnerabilities. This article aims to provide an in-depth understanding of Android task hijacking, its impact, and preventative measures. What is Task Hijacking in Android? Task hijacking in Android is a security flaw that allows malicious applications to take control of genuine app tasks. Essentially, a hacker can exploit this vulnerability to manipulate the user interface (UI) of an app, ... Read More

Screen Pinning

Shubhi Rastogi
Updated on 15-May-2023 14:42:12

206 Views

Whether any person plays competitions on the phone, there is a necessary and unknown aspect present within a phone that is called screen pinning. Whether they can be a gamer or they play lots of competitions then this aspect is so valuable to the users. Not for competitions, there are additional features for which this aspect is utilized. This is so helpful for the tool, whether the person is an IT manager viewing to get the user’s business tools rides a solitary application. Screen pinning can be a piece of Android tool that allows only displaying an exact application monitor. ... Read More

What is the difference between START_STICKY and START_NOT_STICKY while implementing

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

1K+ 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 an Intent that identifies the service you want to start. You can do this with the help of BroadcastReceiver or Activity. Stop the Service: You need to call stopService() method with an Intent that identifies the Service you want to stop. You can also call the stopSelf() method within the ... Read More

Difference between compileSdkVersion and targetSdkVersion

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 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

What does @hide mean in the Android source code?

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

438 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 front of any function it will help to specify the action to it. There are different types of keywords used within android source code such as @hide, @findViewByID, public, private, @hide and many more. In this article we will specifically take a look at the @hide keyword within our android ... Read More

Vertical Scrollview in Android

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

321 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. A vertical scroll view is a view group which is used to display large amounts of data within a single view. It allows users to scroll vertically through the list of items while providing the ability to interact with individual items within the list. In this article we will take ... Read More

Strikethrough Text in Android

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 discounted price. In this article we will take a look at adding a Strikethrough on our text view 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 our application. After that ... Read More

StackView in Android

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

766 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. In this article we will take a look at using a Stack View within our android application. Implementation We will be creating a simple application in which we will be displaying the stack of numbers from one to five and swiping each down we will be displaying another number. Now ... Read More

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