Category "android"

Android : Failed writing handshake bytes (-1 of 14): Broken pipe

Bascially i'm trying to add the back functionality using (MinSDK is set to 11) getActionBar().setDisplayHomeAsUpEnabled(true); Here are is my function: pub

Is it enough to wrap exported functions of a C library using JNI for it to work using JNI?

I am trying to wrap a C library using JNI. I am interested about the prospects of using any C library using JNI (particularly with Android, but I assumed this c

How to Change App title to Logo in Android Studio

How to change the App Title to a Logo? seems this code is not working to Remove the App Title still in there when i build the app. <style name="AppTheme" pa

How to add non-English words as text part to multi-part request in volley lib?

I have a custom json request class to upload multi-part files to server this class in an Android application , it works fine when I add English words as keys an

React Native IllegalViewOperationException: StackOverflowException Android

CONFIGURATION I have this setup: RootNavigation import React from "react"; import { createNativeStackNavigator } from '@react-navigation/native-stack'; import

Android button position fixed to bottom until scroll to its parent layout position

I want to add a button to my layout which is fixed to bottom in the screen until user scroll and come to its proper location in the parent layout. Here the butt

Check if Android app is running on a Google test device?

I recently uploaded an app bundle to Internal App Sharing, and was surprised to see that on my backend, there were 7 new users of this new app version just a fe

Android Studio cannot resolve org.junit

I am using JUnit tests in Android Studio 1.2.2. The tests run without a problem. The only thing that puzzles me is that Android Studio cannot resolve the actual

kotlin kapt3 KaptBaseError: Error while annotation processing ::For Room Database

I am running into this strange issue in the Room database operation classes. There are lot of Annotations are used, starting from Database then Entity, DAO... N

Strange value comparison issue in Kotlin, "===" returns true but "==" returns false

I have encountered a very strange value comparison issue in Kotlin that I cannot explain, the following code prints false data class Foo ( val a: Byte ) fun

Android RecyclerView only contain one item after adding items got from asynchronous retrofit calls

I have a recycler view for image display with a simple adapter. public class ImageListAdapter extends RecyclerView.Adapter<ImageListAdapter.SingleItemRowHold

Variable retrieved from json data doesn't seem right

I retrieve data from mysql server and one of the fields is an int value (1 or 0 ) and it's printed right (1 or zero ) but when I try to apply an if condition on

Kotling :: Android :: java.lang.ClassCastException: java.lang.Class cannot be cast to androidx.lifecycle.ViewModel

I am getting an exception in the first line of the code below viewModel.homeLiveData.observe(this, Observer { list -> list?.let { mLis

Musicg fingerprint for audio input

In musicg I can compare fingerprints of Wave files by the following code : double score = new FingerprintsSimilarity( new Wave("voice1.wav").getFingerprin

Difference between enterAlwaysCollapsed and exitUntilCollapsed scroll flags in coordinate layout

I'm unable to understand difference between these two scroll flags applied to the toolbar or collapsing toolbar, when scroll up and scroll down

How to add drawable to a Text in Compose?

As in XML we used to add a drawable to a TextView, so What is the equivalent of android:drawableLeft, android:drawableRight in Jetpack Compose Text? Is there an

Duplicate Classes to handle app flow (with explicit intents)

I have three different options in my app that allow the user through several of the same classes but at different times, ie 1) Sharing with friend: MainClass

Memory Mapped File location

I am trying to search a list of 268 000 words. The idea is to check whether a word that the user inputs exists in that list. I have accomplished this using a si

Set FAB icon color

current FAB I would like to know how to change the icon color of the FAB (Floating Action Button) widget supplied by the 'com.android.support:design:22.2.0' li

write COMMENT tag to WAV and M4A

I have an audio app and I need to read and write the COMMENT tag of WAV and M4A files. This is all I need. I had struggled for hours without success. The closes