Category "android"

Install Android App Bundle on device

I built my project using the new Android App Bundle format. With APK files, I can download the APK to my device, open it, and immediately install the app. I dow

retrofit 2 @path Vs @query

I am new to retrofit 2 library.I read several articles to get started as a beginner and I managed to fetch XML data from my RESTful API without specifying param

why I still can't set progress bar in the center of the screen ? even though I have set it in constraint layout

as you can see from the image above, the progress bar is always right below the tab layout, even though I have set the progress bar always in the center of th

Does Android Jetpack Compose support Toolbar widget?

I'd like to use Toolbar with Jetpack Compose. Does it have such a Composable component?

How to add icon of the app on the home android screen (react-native)?

When installing on Android, it does not add a shortcut on home screen, but the app used to. You can find it in the app drawer only now. How to add icon of the a

How to load data in one fragment in Android

I want show 3 fragments in my Activity and load data from json in any fragments! I want show each json data into one fragment, but in my application show all of

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