Found 1966 Articles for Apps/Applications

How to enable/disable log levels in Android?

Vaibhav Ahire
Updated on 30-Mar-2023 13:56:45

4K+ Views

Introduction There are many softwares present in the market which are used for developing mobile applications such as VS Code, Intellij IDE, Android Studio and many more. Android Studio is an official integrated development environment (IDE) designed to help developers create and develop apps for the Android platform. It is a powerful tool that allows developers to create and manage projects, build apps quickly and efficiently, and debug code. Android Studio provides so many features for developing android applications such as debugging of the applications, checking our memory leaks, monitoring app performance and many more. Along with this Android studio ... Read More

How to decompile Android DEX (VM bytecode) files into corresponding Java source code?

Vaibhav Ahire
Updated on 30-Mar-2023 13:55:06

1K+ Views

Introduction Android platform uses a virtual machine which is known as Dalvik VM which is used to execute the android application code. Dalvik VM executes the code in a format called DEX (Dalvik Executable). DEX files are the compiled version of Android application code written in Java. DEX files are a form of bytecode and can be decompiled into the corresponding Java source code.When we build a project in android studio to generate the APK. The compiler will firstly convert the code to dex and then this generated dex is then converted to the APK. This APK can be installed ... Read More

How to clear the back stack in Android?

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

3K+ Views

Introduction Many times in android applications we use to display so many different types of activities. These activities are used in android applications for performing the different tasks. When we are navigating from one activity to another activity, the previous activity from which we have navigated remains in the stack, which will take system memory and may degrade the performance of the application. To prevent this we have to clear the activity history stack of an android application. In this article we will take a look on How to clear the back stack in Android. Implementation We will be creating ... Read More

How to change theme for AlertDialog on Android?

Vaibhav Ahire
Updated on 30-Mar-2023 13:51:50

4K+ Views

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 More

How to change progress bar progress color in Android?

Vaibhav Ahire
Updated on 30-Mar-2023 13:49:59

4K+ Views

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 More

How to capture virtual keyboard show/hide events in Android ?

Vaibhav Ahire
Updated on 30-Mar-2023 13:48:27

1K+ Views

Introduction Many times in android applications a keyboard has popped when the user clicks on any text input field. In some cases we have to restrict users to enter the data into the text input field via a menu. In that case we have to hide the keyboard for that text input field explicitly. In this article we will take a look on How to capture show/hide events for the virtual keyboard within our Android application. Implementation We will be creating a simple application in which we will be displaying a simple text view in which we will be displaying ... Read More

How to add a Library Project to an Android Project?

Vaibhav Ahire
Updated on 30-Mar-2023 13:46:43

633 Views

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 More

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

2K+ 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

Advertisements