Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Android Articles
Page 12 of 125
How can we switch off an Android phone programmatically?
Introduction Android phones are designed with a wide range of features and capabilities, including a Power button that allows users to turn the device on and off. Power button in an android device is used to switch on and switch off the mobile device. In this article we will take a look on How we can switch off our android phone programmatically. Implementation We will be creating a simple project in which we will be displaying a simple text view for displaying a heading in which we will be displaying the simple heading. Along with this text view we ...
Read MoreHow can I get the currently displayed Fragment instance in Android ?
Introduction Android applications are built using different components such as Activities as well as Fragments. Fragments are lighter versions of activity and hence they are used in most of the cases for displaying the UI of the application. Fragments are considered as one of the essential components of Android application. They are generally used to create a complex, dynamic user interface that is both robust and highly customizable. Managing the Fragments in an android application is a bit tricky and particular when it comes to resuming fragments from the back stack. One activity within an android application can contain multiple ...
Read MoreHow can I do a synchronous request with Volley in Android?
What is a synchronous request in Android Synchronous requests with Volley in Android App can be useful for developers who wish to retrieve data from a server and be able to immediately use it in their application. This can be useful for tasks such as loading images or data from a remote server. In this article, we will discuss how to make synchronous requests with Volley in an Android App Implementation of a Synchronous request in Android We will be creating a simple application in which we will be simply displaying two text views. In the first text view ...
Read MoreHow can I check the current status of the GPS receiver in Android?
Introduction There are many android applications which take location from the users for delivering any specific product or service at their doorstep. This application generally uses GPS to get the location of their user for delivering their service. To get the location from the GPS, we should check the current status of the GPS Receiver in our android device whether the GPS is on or off. In this article we will take a look on How can we check the current status of the GPS Receiver in Android. Implementation We will be creating a simple application in which we will ...
Read MoreFragments within Fragments in Android
Introduction Many times while building an android application we come under a scenario in which we have to display one fragment into another fragment. For example we are using tab layout with fragments within our application and we want to open another fragment on button click then we have to call one more fragment into the current fragment. In this article we will take a look on How to call a fragment into another fragment in Android. Implementation We will be creating a simple application in which we will be displaying a text view inside our parent activity. Inside this ...
Read MoreConverting a view to Bitmap without displaying it in Android?
Introduction In android applications many times we have to get a bitmap from a view and use that bitmap within our android application. The bitmaps are generally created by passing the views to it. In this article we will take a look at How to convert a view to bitmap without displaying it in Android. Implementation We will be creating a simple application in which we will be displaying a text view, a button and an image view. Inside the text view we will be displaying the heading of our application. After that we will be adding a button, on ...
Read MoreContent Providers in Android with Example
What are Content Providers in Android ? Content Providers in Android are a component of the Android operating system that enable applications to store and share data with other applications. A Content Provider provides an interface between an application and the Android data sources such as databases, files, and SharedPreferences. Content Providers are one of the four fundamental components of Android application development, along with activities, services, and broadcast receivers. Applications that need to access data from other applications use Content Providers. Content Providers are usually used to store and retrieve data from a storage medium. This storage medium can ...
Read MoreApp Development for Android : 2023 Challenges and Solutions
Introduction Android is one of the famous operating systems which is used across many mobile devices. Almost 75 % of mobile devices across the world are using android as their mobile operating system. Hence learning android development will be beneficial which will help you to deliver your applications to the huge number of audience. For building this application you should move towards learning android development. In this article we will take a look at some Challenges and solutions for it which are faced while learning android development. Device Fragmentation As the market of android operating systems is growing very fast ...
Read MoreAndroid Tools and Methods to find Memory Leaks
Introduction Android applications are nowadays being developed with the help of so many complex tools to integrate so many features within our applications. There are numerous APIs and other processes which are being carried out within the android application which makes the application consume more memory. The consumption of huge memory by the android application leads to the memory leak within the android application. Due to this huge memory consumption by android application there are a lot many problems arise within android application. One of the most common issues is memory leaks, which can cause the app to become sluggish, ...
Read MoreAndroid Studio Setup for Flutter Development
Introduction Flutter is a free and open source SDK of Google which provides cross platform app development support to develop applications for android as well as IOS. It uses Dart as a programming language for developing applications. In this article we will take a look on How to set up Flutter in Android Studio to get started with using Flutter for building applications. Step by Step Setup Guide Step 1 − Navigate to Android Studio. Navigate to Android studio as shown in below screen. In the below screen click on plugins to add a new plugin for Flutter. After ...
Read More