Category "android"

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".

Making textinputlayout uneditable and setting click event on it

I want to make textinputlayout uneditable by user and when user click on it i want to perform an action. I added android:focusable="false" inside edittext of te

Use adb screenrecord command to mirror Android screen to PC via USB

I've tried the suggestion from fadden to mirror the Android screen to PC, but the vlc player screen show nothing: What would be the correct commands lines f

Flutter-Android how to use the camera while the app is in foreground/background

is it possible to use the camera while the app is in the foreground or background? I tried with these two packages flutter_foreground_task and flutter_backgroun

Charles Proxy certificate is installed on device but calls are blocked Android

So I am trying to use Charles to test the analytics on this app. I've followed many tutorials but I can't seem to get it to work. I've set up Charles properly,

Converting SVG file to Android Vector Drawable XML while keeping the group structure in place

I want to convert SVG files to Android Vector Drawable XMLs. I need the structure of the SVG. To the extend that the SVG groups multiple elements together, I ne