Category "android"

Android status bar is the same color as Toolbar

I am running an android project. My toolbar and status bar are all green in my activity_main layout. If i change toolbar color to other color the status bar wil

Call recording, call multiple(repetitive) telephonic stages and creates multiple audio files

I have created one service and broadcast receiver to get telephony state. Below is my code : @Override public int onStartCommand(Intent intent, int fla

How to change the ellipsis string of Android TextView?(... to ...more)

I want to change the ellipsis string from ... to custom string, such as ...[more]. But in TextUtil, the ellipsis string is fixed: private static final St

How to remove Header title in bottom nav bar - Android Studio

My objective is removing the orange bar thar has the label "App name". Currently I have a top_app_bar and bottom_nav_bar. As far as I know the orange bar is gen

Strange empty bar above fragment on BottomNavigationView

This is how it is supposed to look: https://i.stack.imgur.com/4bLy5.png This is how it looks: https://i.stack.imgur.com/oSUjF.png Strange white space appears

Android databinding set padding if value is true

I want to be able to to be able to set padding values if a boolean is true. The problem is that Android studio cannot parse the layout because it thinks 2dp is

Android instant app deeplink with custom scheme: UNKNOWN_URL_SCHEME

I have an SDK that registers an Activity to handle a custom scheme, at some point the SDK would open a http url to my website, upon clicking a button in the web

how to show alert dialog on top of any activity in an application android

I want to display an alert dialog. And this alert dialog is created in one activity. But Problem is i want to display this dialog on top of any activity in an a

Cross Compiling ghostscript for android, what host should I use?

Hi Guys I am using this tutorial to build ghostscript-9.19 to be able to use in my android application to convert eps document to pdf. It fails while configure.

While use TextInputEditText, the error icon override the end icon

I am developing an interface that contains a component TextInputLayout. Here is my layout code: <com.google.android.material.textfield.TextInputLayout

Do I need to disclose use of Google Play billing library in the data safety form?

I've implemented in-app purchases in my app by using the Google Play billing library. I've implemented it as per the guidance here. This just a basic one-time p

Changing button color causes the button to get bigger

Here is what the button looks like after changing the color Here is what it looks like with "show layout bounds" on I have an "add note" button which shows a

silent push notifications in react native app

We are working on a react native app, in which we have some features where we can do some actions using silent push notifications. we are using react-native-fir

Scheduling alarm not working on Android 12

When running on Android 12 and targeting SDK 31 scheduled alarms stopped working for me. I schedule the alarm by AlarmManager alarmMgr = (AlarmManager)context.g

What exactly is the difference between physical density and physical density of a device?

I have created a function to calculate diagonal screen size based on the resolution and pixel density. viz- def find_display_size(d): width=float(720); he

How can I make an accompanist navigation BottomSheet fully expanded?

I know that a normal bottom sheet can be setup like this rememberModalBottomSheetState( initialValue = ModalBottomSheetValue.Hidden, confirmStateChange = {

FirebaseInstanceId Token retrieval failed SERVICE_NOT_AVAILABLE

I'm working on an android app, it uses Firebase Authentication, Database and Storage. It was all working fine until this error message started to show up in log

Using UUID for Primary Key using Room with Android

I need to sync my Android mobile app with a multi-tenant database in the cloud. I thought the best way to do this was using a UUID for the Primary Key of my tab

Android WebView Not showing Anything

I am trying to use webView to show a URL in android app. If I try with this URL- http://stackoverflow.com I am getting this- But if I am trying with th

How i can get Uri from intent?

I did @Override public void onClick(View v) { switch (v.getId()){ //если выбрали