Found 2041 Articles for Mobile Development

How to access data/data folder in Android device?

Vaibhav Ahire
Updated on 30-Mar-2023 13:44:37

19K+ Views

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 More

How do I open front camera programmatically on the Android platform?

Vaibhav Ahire
Updated on 30-Mar-2023 13:41:40

3K+ Views

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 More

How do I get a string from resources using its name in Android?

Vaibhav Ahire
Updated on 30-Mar-2023 13:39:54

3K+ Views

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 More

How can we switch off an Android phone programmatically?

Vaibhav Ahire
Updated on 30-Mar-2023 13:38:28

2K+ Views

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 More

How can I get the currently displayed Fragment instance in Android ?

Vaibhav Ahire
Updated on 30-Mar-2023 12:46:00

4K+ Views

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 More

How can I do a synchronous request with Volley in Android?

Vaibhav Ahire
Updated on 30-Mar-2023 12:43:52

569 Views

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 More

How can I check the current status of the GPS receiver in Android?

Vaibhav Ahire
Updated on 30-Mar-2023 12:39:45

880 Views

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

Fragments within Fragments in Android

Vaibhav Ahire
Updated on 30-Mar-2023 12:36:22

4K+ Views

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 More

Converting a view to Bitmap without displaying it in Android?

Vaibhav Ahire
Updated on 30-Mar-2023 12:32:26

185 Views

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 More

Content Providers in Android with Example

Vaibhav Ahire
Updated on 30-Mar-2023 12:29:45

3K+ Views

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 More

Advertisements