Category "android"

Changing Orientation in Bluestacks to test Orientation Change of my App

Android Emulator 4.4 apparently has a bug which keeps it from changing rotation appropriately. Having heard that Bluestacks is faster anyway, I wanted to give i

Service stops running after a while on the real device ( > 40 minutes ) works on emulator

Friends, I created an android background service that is called every 2 minutes. When its called it starts listening for locationUpdates for GPS and NETWORK for

Xamarin Google Maps Blank

I've been following: https://developer.xamarin.com/guides/android/platform_features/maps_and_location/maps/obtaining_a_google_maps_api_key/ and https://devel

System Dark mode setting problem (More Dark mode options)

Hello‚ I had a problem with the night mode in my program. Switching from the phone system to night mode did not change the black text to white. It was jus

how to find which app is listening on port Android

I'm trying to write a port scanner, I managed to get the open ports using sockets. My problem is how to know which apps are listening on open ports.

Scroll issue with LazyColumn inside BottomSheetDialogFragment

I use LazyColumn inside BottomSheetDialogFragment, but if to scroll LazyColumn list UP then Bottom Sheet Dialog scrolls instead of LazyColumn list. Seems like B

Android app - delete item from list following an action in another activity

I'm creating an app where I display a list of pending challenges. When the user clicks on a challenge, he can accept it or ignore it. Here's what I want to do

Difference between audio frameworks on linphone audio settings

I am looking at the linphone audio settings and I see that there're two audio frameworks available, which is the difference between using AAaudio framework or O

Using text as a primary key in SQLite table bad?

Is it bad to have text as a primary key in an SQLite database? I heard that it's bad for performance reasons, is this true? And will the rowid be used as the ac

Getting filename from uri

How can I get the name of a file from a uri returned in OnActivityResult, I tried using this bit of code Uri uri = data.getData(); String fileName = uri.

In Gradle, how to print out a message in the console / Event Log?

I'm trying to verify that my source and target paths are properly setup when I execute a deploy command. See the example below: (copied from: http://eppz.eu/blo

Force refresh of manifest.json to download new PWA

I have a start_url set to /mysite. Now I've updated the manifest to have start_url set to /mysite?tracking=ga in order to view installs from the app. Anyway for

Loading images from firestore in image slider

I'm trying to load the images in an image slider from firestore. The image urls are there in firestore. I'm using the following library https://github.com/denzc

Firebase Android - Skipping initialization

I am currently implementing an Android app, which uses Firebase Cloud Messaging. I've implemented everything according to the tutorial on the Firebase page. Ho

react-native Android Mapbox build problem

I am trying to configure for Android a react-native app which uses Mapbox and works perfectly in iOS. The react-native version is 0.66.2, the Android Studio ver

Jetpack Compose + Hilt: java.lang.RuntimeException: Cannot create an instance of class ViewModel

I started trying jetpack Compose recently and used hilt & hilt-navigation-compose for my app. It works fine with the first ViewModel. However, when I try th

No matching client found for package name "...." with different buildvariant

I want o implement push notification. I added to project level: dependencies { classpath 'com.android.tools.build:gradle:2.2.2' classpath 'com.

Two way data binding issue of \n (new line) while set String into Edittext

I am facing one issue while set data into Edittext when using TWO WAY DATA BINDING which contain HTML tags like " < br > " or \n. when there is \n it

Replacing ACTION_SCREEN_ON withy ACTION_USER_PRESENT?

I have a long-running service listening for sensor input. To conserve battery power, I've stopped the sampling of the sensors on ACTION_SCREEN_OFF and started i

Android: change background color View onClick Button

How I can change the background color to a View this under a button when I click the button? I've tried a selector does not work because the View not change the