Found 1966 Articles for Apps/Applications

What is the Android UiThread?

Vaibhav Ahire
Updated on 30-Mar-2023 14:37:39

411 Views

The Android UIThread is the main thread of the Android operating system. It is responsible for handling all user interface components and events. The UIThread is responsible for creating and managing the user interface, from creating the Activity and Fragment objects to handling user input, and drawing the user interface on the screen. The UIThread is responsible for executing the main loop of the application, which is responsible for updating the user interface and responding to user input. This loop is constantly running, even when the user is not interacting with the application. This ensures that the application always ... Read More

How to start an Application using Android ADB Tools ?

Vaibhav Ahire
Updated on 30-Mar-2023 14:35:45

2K+ Views

Introduction Android Debug Bridge or ADB is a versatile command line tool which allows you to communicate with an Android device to control and manage the application to be installed in an android emulator. With ADB we can copy files, run shell commands and do many more operations. In this article we will discuss on How to start our application in an android emulator using ADB Tools. Implementation We will be creating a simple android studio project in which we will be displaying a simple text view. After that we will be using our ADB Tools commands to launch this ... Read More

How to send POST requests in JSON using HTTP Client in Android?

Vaibhav Ahire
Updated on 30-Mar-2023 14:34:14

8K+ Views

Introduction Many android applications use APIs within their application so that they can interact with the database and perform read and write operations on the database. There are several libraries which we can use to make API calls within our android application. In this article we will take a look at How to send POST requests in JSON using HTTP Client in Android. Implementation We will be creating a simple application in which firstly we will be displaying the heading of our application. After that we will be creating two edit texts which are used to get the name and ... Read More

How to see if Wi-Fi is connected on Android?

Vaibhav Ahire
Updated on 30-Mar-2023 14:28:05

1K+ Views

Introduction Many times in android application api calls are being made. For making this api call it is necessary that the device is connected to the internet. Most of the applications before making any api call make sure that the device is connected to the internet. Along with that when an application is downloading some big files in that case the application generally checks whether the device is connected to wifi or not. In this article we will take a look at How to see if the android device is connected to Wi-fi or not from our android application. Implementation ... Read More

How to retrieve the signature of the key used to sign an Android APK?

Vaibhav Ahire
Updated on 30-Mar-2023 14:26:16

4K+ Views

What is signing of an Android APK Signing an Android APK (Android Package Kit) means applying a digital signature to the APK file using a private key to verify the authenticity and integrity of the package. The signature is created by a developer or an organization and is unique to their app. When an app is published on the Google Play Store, the app must be signed with a certificate that verifies the identity of the developer or organization who published the app. This certificate helps ensure that the app has not been tampered with or modified since it ... Read More

How to resume Android Fragment from BackStack if it exists?

Vaibhav Ahire
Updated on 30-Mar-2023 14:25:16

1K+ 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. In this article we will take a look at ... Read More

How to read a text file from the SD card in Android?

Vaibhav Ahire
Updated on 30-Mar-2023 14:15:04

940 Views

Introduction Many times in android applications we have to download a specific file and we store that file in our device's external storage. Sometimes we have to access these files fromour devices external storage and display the content from these files within our android application. In this article we will take a look at How to read a text file from the SD Card in android. Implementation We will be creating a simple application in which we will be displaying two text views. In the first text view we will be displaying the heading for our application and in the ... Read More

How to play sound even when an Android phone is in silent mode ?

Vaibhav Ahire
Updated on 30-Mar-2023 14:13:35

2K+ Views

Introduction Many times in android applications we come across a scenario where we have to play a notification sound to be played in the user's mobile device even when the device is in silent mode. In this article we will take a look at How to play a sound even when an Android phone is in silent mode. Implementation We will be creating a simple application in which we will be displaying a simple text view for displaying the heading of our application. After that we will be creating a button which we will be using to play the notification ... Read More

How to hook a function into the Power Button in Android?

Vaibhav Ahire
Updated on 30-Mar-2023 14:11:13

1K+ 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. While the basic function of the Power button is to turn the device on and off, Android developers can actually use the button to trigger custom functions. This can be done by “hooking” a function to the Power button, which will allow the function to be triggered anytime the Power button is pressed. In this article we will take a look on How to hook a function into Power Button in an Android ... Read More

How to handle TransactionTooLargeException in Android?

Vaibhav Ahire
Updated on 04-Apr-2023 10:32:43

1K+ Views

Introduction Handling a TransactionTooLargeException in Android is a common issue that most developers have encountered. The exception usually occurs when an app is trying to send or receive a large chunk of data, which exceeds the maximum size limit of the Android operating system. If the size of the data exceeds 1MB, the TransactionTooLargeException will be thrown and the app will crash. In this article, we will discuss how to handle the TransactionTooLargeException in Android. We will discuss some of the best practices that developers should follow to prevent the exception from occurring, as well as how to handle the ... Read More

Advertisements