Category "android"

Android Navigation Component: dynamically adding fragment to graph

I got a question about using Navigation Architecture Component. I have defined a navigation graph to my app and it works perfectly but I need to use framework S

Android Studio: An exception has occurred in the compiler (1.8.0_152-release)

While running app, unable to complete compilation. Keep throwing error. I am using dagger2 library for annotation. Error:15:04:36.466 [ERROR] [system.err

How to show most used item in first place in RecyclerView in Android?

I have made the application of different tools which have more than 60 tools I want that the user most used item showed in first place in RecyclerView. Please h

FlickrJ-Android Alway authentication failed

I am developing a small android application to upload photo to Flickr. I use Flickj-android library to call Flickr API. But I can't authorize my app. I always g

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