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
-
Economics & Finance
Mobile Development Articles
Page 14 of 156
How to change theme for AlertDialog on Android?
What is Alert Dialog in Android? Alert dialogs in android are used to display alerts within android applications. We can display alert dialog within our application to display any warning message to the user. Inside the alert dialog we can provide two options to the users whether to select as yes or no in the dialog. In this article we will take a look on How to change the theme for default Alert Dialog in Android. Implementation We will be creating a simple application in which we will be displaying a simple text view for displaying the heading of our ...
Read MoreHow to change progress bar progress color in Android?
What is the Progress Bar in Android? Progress Bar is a widget in android which is used to indicate the loading screen within an android application. It is generally displayed when the data is being loaded within an android application from a server. In this article we will take a look on How to change progress bar color in Android. Implementation We will be creating a simple application in which we will be simply displaying a text view for displaying the heading of our application and we will be displaying a progress bar. We will be changing the color of ...
Read MoreHow to add a Library Project to an Android Project?
Introduction Many times while building an android application we use open source libraries which are present on github to add certain functionalities within our application. These libraries can be added in our project by simply specifying the dependency and then we can the functionalities of that library within our application. In this article we will take a look on How to add a Library Project to an Android Project. Implementation In this article we will be creating a simple Android Project and inside this project we will be creating a Library Project and using that Library Project within our main ...
Read MoreHow to access data/data folder in Android device?
Introduction Mobile devices have now become a large part of our daily lives. We can use these mobile devices to gain information to communicate with the rest of the world and perform our day to day tasks. While performing so many day to day tasks on our mobile devices we use so many applications and we come across a lot of data within our applications. Either we store our data inside our mobile applications or we provide data to the applications. Most of the applications store the data inside the data/data folder or an android device. The data/data folder within ...
Read MoreHow do I open front camera programmatically on the Android platform?
Introduction Many mobile applications specify the feature within it to capture the user's image through the front camera. We can get to see this type of feature in applications such as Snapchat, Instagram and others. In this article we will take a look on How to open front camera in our android application and display the captured image within our application. Implementation of Front Camera in Android We will be creating a simple application in which we will be displaying a simple text view to display the heading of our application. After that we will be displaying an image view ...
Read MoreHow do I get a string from resources using its name in Android?
Introduction Android applications use different types of strings to be displayed inside different types of views such as text view, buttons and others. In most of the cases instead of hard coding the strings inside the code. It is preferred to add these strings inside the strings.xml file so that it becomes easy to modify and manage those strings across all the projects. Along with that this will help to enable internalization for the strings to be used within our application. Implementation We will be creating a simple application in which we will be displaying two text views. One for ...
Read MoreHow 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 More