Category "android"

How can I disable a task in build.gradle

I want to skip some tasks when I run gradle build. I know that it can be done from command line with -x: gradle build -x unwantedTask My question is how can t

Why AVD Manager options are not showing in Android Studio

Why i'm unable to see Android Virtual Device (AVD) I'm facing problem to create AVD in android studio, the problem is i'm unable to see any of this option Tool

Organize shared code between androidTest and test

I'm building an android component in the form of a gradle project. To test my components UI in several configurations with the espresso framework, I have a Test

How to Lock Android App's Orientation to Portrait in Phones and Landscape in Tablets?

I am developing an Android app whose orientation I don't want changed to landscape mode when the user rotates the device. Also, I want the locked orientation to

Picking video file on Android 10: Error NdkMediaExtractor can't create HTTP service

I'm using Unity version 2019.4.3f1 I'm trying to load local video file on Android 10 device (Samsung A90) from the gallery but I'm not able getting this error:

Changing the default tag in Debug.Log for Unity 3D

In order to debug the code for android tags are very helpful to filters the logs on the basis of tags. In Unity 3d when we use Debug.Log By defaults all log

How to limit ActivityResultContract.GetContent to media (image or video)

Is there a way to make ActivityResultContract.GetContent filter only media files? private val selectMediaResultLauncher = registerForActivityResult(Activity

Android: set just one padding of textview programmatically

I want to set the top padding of a textview programmatically. I know you can do this with the method setPadding(). But the problem is that this method requires

Google Play Screenshot Size Resolution

I need to resize my screenshots for Google Play Store Listing for Phone, 7" and 10" tablets, but cannot find an actual resolution. Apple App Store gives specif

Flutter: Dismissable with Card and Margin

I'm building a simple listView in Flutter where the "cells" are simple Cards with a set margin. When dismissing these cards, the "margin" covers the dismissible

Failed to resolve: com.github.barteksc:android-pdf-viewer:3.2.0-beta.1 how to fix this

I try to build android pdf reader and add a library com.github.barteksc:android-pdf-viewer:2.8.2 then it shows the following error My build.gradle file is pleas

Port android app from Android Studio to Microsoft Visual Studio

I have an app written in Android Studio, that I want to work on using Visual Studio. Is there a way to import my project into Visual Studio?

Parsing HLS m3u8 file using regular expressions

I want to parse HLS master m3u8 file and get the bandwidth, resolution and file name from it. Currently i am using String parsing to search string for some patt

android - how to know the density to define for display

I am trying to create a small android device, I got a lcd display with 360x600 and 3inch. if I use the formulat sqrt(ww+hh)/inches, the value is 233. is that th

Update elements in a JSONObject

Lets say I gave a JSONObject { "person":{"name":"Sam", "surname":"ngonma"}, "car":{"make":"toyota", "model":"yaris"} } How do I update some of the values

Sorting an array of integers in descending order and relating it to its corresponding string array

I am trying to output the names and corresponding scores in descending order. Having an array of strings and another array of integers, I am trying to relate th

android-firebase childEventListener in service

in my android application i am trying to implement childEventListener of firebase database even when the app is not active. means whenever the firebase db parti

How to enable fast scrolling to "EditText Field" in android application

I am using EditText, and it has good amount of matter to scroll and read. Now my problem is, it's scrolling slow. So, i want increase it's scrolling speed. If a

firestore: PERMISSION_DENIED: Missing or insufficient permissions

I am getting the Error gettingdocuments.com.google.firebase.firestore.FirebaseFirestoreException: PERMISSION_DENIED: Missing or insufficient permissions.

Android how to make ok button on dialog not all caps

For an alert dialog in Android, how do you make the positive button not have all capital letters. The text is "OK" instead of "Ok".