Category "android"

How to use android midi USB stack with non-compliant devices

I have a working android app which uses a proprietary java midi implementation to talk to a non-compliant midi device over USB. I now want to move to the standa

Android Studio - Assigning multiple value to ManifestPlaceholders in Gradle

I have two environment of my project one Prod another one is Staging. So whenever I have to build any of the environment, I have to change multiple keys like ma

How does Android's image copy-paste work and can this feature be expanded/modified?

Apologies if there is already information about this. I couldn't find anything. On Android, you can long-press an image and choose copy. On other apps, such as

SwipeRefreshLayout intercepts with ViewPager

I have a ViewPager wrapped inside a SwipeRefreshLayout. Sometimes, when I swipe to the left/right the SRL get's triggered. This mostly happens when I'm at the

How to have EditText with border in Android Lollipop

I am developing an Android app. I need to know how we can have a EditText with border. In Lolipop they have completely changed the EditText style. Can we do it

Round Double to 1 decimal place kotlin: from 0.044999 to 0.1

I have a Double variable that is 0.0449999 and I would like to round it to 1 decimal place 0.1 . I am using Kotlin but the Java solution is also helpful. val

Reach the version code and name from a library module

I'm currently working on modularizing my application, so I'm putting each feature in a library module. In one of my features, I access the version code and name

How to switch layouts back and forth using Square's flow library?

I am trying to use Square's flow library to make a very simple app. The idea is that clicking a FAB will switch the screen from blue to red. Clicking the FAB ag

Dagger-Hilt @AndroidEntryPoint is not working with BottomSheetDialogFragment()

I am using ViewModel inside BottomSheetDialogFragmet() so I have to mark my BottomSheet with @AndroidEntryPoint. @AndroidEntryPoint class SearchAddressDialog :

How to align to right on the same column in android layout

I have 2 text view and i want them to align horizontally at the same column. I tried to android:layout_toRightOf="@id/textName" but it seem like it goes to t

React-native fbsdknext when first logIn on android Profile.getCurrentProfile return null

Faced a problem while using react-native-fbsdk-next. The first call to Profile.getCurrentProfile on android returns null. Everything works correctly on ios. If

Ionic - run performance tests directly on device

I am developing an ionic 1 app designed to run on a specific android device. I cannot find a way to easily get performance metrics (memory usage, cpu, fps, et

input.readLine waiting (blocked) for ever, how to deal with this?

I have a Java server that it is compiling Android APKs by command line and writing the output into a file, this is the source code: Process p = Runtime.getRunti

gradle not syncing when adding firebase to android studio

So I'm trying to add the Firebase SDK to my Android Studio app as per the instructions from the Firebase website (see picture). Adding the line classpath 'com

What android broadcasts are sent by gmaps while navigating?

I am developing an android application which captures the location of every turn the user made while navigating from a source to a destination. My application w

The AsyncTask API is deprecated in Android 11. What are the alternatives?

Google is deprecating Android AsyncTask API in Android 11 and suggesting to use java.util.concurrent instead. you can check out the commit here * * @deprecate

Fixed Grid inside LazyColumn in Jetpack Compose?

Currently in Jetpack Compose, this code throws an IllegalStateException because you cannot nest two vertically scrolling Composables: @ExperimentalFoundationApi

.net maui blazor - Show image from android internal storage

Im using the .net maui blazor to get the device to take a photo, then as its taken it, i wish to display it on the screen so the user can see what image they ha

How to draw an overlay on top of mobile vision barcode scanner?

I have been trying to get this done but with no succes for the last couple of days. I am trying to add a squarebox overlay ( wouldbe nice if it could contain 2

com.google.android.gms.common.SignInButton button not displaying in design using Firebase

Connected Firebase with my Android project and here is my build.gradle file code: apply plugin: 'com.android.application' android { compileSdkVersion 26