Category "android"

Problem with Switch buttons on RecyclerView

I'm kinda new to Android developing and I hope you can help me. I have one RecyclerView, with each cardview showing one image, two text views and one switch but

How to delete placement ads ids of Facebook Audience Network?

I create placement ads id of Facebook. Now I want to delete these ids but there is no option on the console. There is an "Archive Placement" option but I don't

Using layer-list to display some drawable images

Android studio 2.0 Preview 3b Hello, I have created the following layout that I want to use for a background for my app. I am using the layer-list and I w

RecyclerView items lose focus

In my fire tv app I'm using a recyclerview with horizontal layout. Scrolling with dpad works and also items are gaining focus. But when I hold the button it

Change color edittext selection handles programmatically

I'm trying to change the color of an edittext programmatically. It works but as you can see from the image attached, the icons for the text selection are still

Why is future.get() always timing out for Volley RequestFuture?

I am trying to make a synchronous Volley networking request. I am using request futures to wait on a response, but the future.get() call always times out (no ma

React Native, TouchableOpacity wrapping floating button get nothing

I'm creating a simple action button (floating button) This is working : <View style={{ width: this.props.size, height: this.props.size, borderR

OutputStreamWriter.append not appending text to a text file Android Programming

File file; FileOutputStream fileOutputStream; final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); mainIntent.addCategory(Intent.CAT

Android mapbox v10 - dynamically change the source url

We have a usual source url of something like https://my-source/{x}/{y}/{z}. When the user selects filtering options, we'd like to add these params to the url as

how to make full screen activity with status bar on top of it while scrollbar is not scrolling full in Activity when it focus on editText?

Issue is that when I enter text in EditText then ScrollView does not work and does not scroll in my activity fun statusBarColor(activity: Activity) {

Vault Data offline persistence android api does not generate helper classes

I am trying to use Android Vault API to get data from Contentful. https://github.com/contentful/vault However, when I call requestSync(), get an error that help

how to make full screen activity with status bar on top of it while scrollbar is not scrolling full in Activity when it focus on editText?

Issue is that when I enter text in EditText then ScrollView does not work and does not scroll in my activity fun statusBarColor(activity: Activity) {

Android Audio fingerprinting implementation

I am working on an Android app that works similar to shazam, soundhound, etc. I am using Echoprint for Android w/ source found on GitHub for implmentation of so

Property must be initialized or be abstract

How to declare class field? Like we can have it in java: protected SharedPreferences mSharedPreferences; And later in onCreate(): mSharedPreferences = Preferen

Steps to programmatically cast from android to miracast receiver

I'm trying to write an app that will start casting the screen from an Android phone to a TV via miracast. I'm using an HDMI dongle since the TV in question does

"Sensors Off" developer tile removed in Android 12 - Can't open camera

I recently updated my OnePlus 8t phone to Android 12, I was on Android 11 before, I quickly noticed the new camera and microphone tiles in the notification draw

how can i use android wifi-display native source in my app?

I want to use miracast in my app without going to system setting, and find miracast device and connect to them in my app. Two class that was in setting classes

Ionic build fails at "Could not resolve com.google.android.gms:play-services-ads-identifier:[15.0.0, 16.0.99]"

So building was always fine until it wasn't. Nothing new was added, nothing was removed, no packages installed, nothing. Everything was working fine until the b

Where does the file get saved using "File file = new file(filename)" in Android

I am writing an android application. In the MainActivity.java, I created a method to write and then read contents from a file. These code runs successfully I an

Google sign in failed com.google.android.gms.common.api.ApiException: 10:

So I'm Stuck on this frustrating issue. I am quite new to Google Auth on Firebase but I done everything the firebase docs instructed in how to integrate the Goo