Found 2041 Articles for Mobile Development

Difference between Android Activity Context and Application Context

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

What does @hide mean in the Android source code?

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

427 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

294 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

730 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

Service vs Intentservice in Android

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 at the same time. 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 ... Read More

Running Google Maps v2 on the Android Emulator

Vaibhav Ahire
Updated on 09-May-2023 16:06:57

455 Views

Introduction Many android applications nowadays use Google Maps within it to display the map to the users. For example we use many food delivery applications in which we can get to see our order status along with the location of the delivery boy on Google Maps. In this article we will take a look on How to run Google Maps v2 on the android emulator. Implementation We will be creating a simple application in which we will be displaying a simple Google Map within our application and we will be adding a marker on that map to the Delhi location. ... Read More

Realm Database in Android

Vaibhav Ahire
Updated on 09-May-2023 14:49:46

2K+ Views

Introduction There are several databases used in android for storing as well as retrieval of data such as SQLite, Room DB, Realm Database and many more. Realm Database is also one of the famous data storage services which uses SQLite to store the data within our android application. In this article we will take a look at using Realm Database in Android. Implementation We will be creating a simple application in which we will be displaying two text input fields. Users can enter his name and age from that field. Then we will also add a button which we will ... Read More

Implementing services in Android?

Vaibhav Ahire
Updated on 09-May-2023 12:43:47

474 Views

Introduction In many android applications we can see them perform some background tasks in it such as playing music in the background. Many music applications can play the song when the app is not open and play the music in the background. This task can be done with the help of services in android. In this article we will take a look on How to implement services in Android. Implementation We will be creating a simple application in which we will be displaying a text view for displaying the heading of the application. Then we will be creating two buttons, ... Read More

How to use Retrofit Library in Android?

Vaibhav Ahire
Updated on 09-May-2023 12:35:19

7K+ Views

Introduction Retrofit is one of the famous HTTP libraries which is used to parse the data from the internet using APIS. We can use this library to fetch the data from API in the form of JSON and display that JSON within our application. In this article we will take a look at How to use Retrofit Library in Android. Implementation We will be creating a simple application in which we will be creating a text view for displaying the heading of our application. After that we are creating one more text view in which we will be displaying the ... Read More

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