Category "android"

How can I convert Google Maps plus codes to Lng & Lat coordinates

I'm working on a project and I'm using some old google maps stuff. It requires longitude and latitude gps coordinates to get the location of a hospital for exam

How to make multiple constructors in Kotlin?

I want to use library which is in Java and it has alot of errors so I'm trying to change it to Kotlin. And AndroidStudio is not converting Java to Kotlin proper

Remove/revoke GitHub OAuth 'access_token'

I am using this GitHub's API to generate an access token for the user (mobile app), using this tutorial: https://developer.github.com/apps/building-oauth-apps/

How to set android camera2 preview and capture size?

I am using a SurfaceView to show the preview I capture. I want to use width=1080,height=1920 for the preview. Where can I set the size of the preview? I google

2 files found with path 'core.properties' from inputs:

I'm trying to upgrade a project to android 31 and latest Gradle version 7.3.0-alpha03 but, I'm getting some errors this is my stacktrace > Task :app:mergeSta

How to hide bottom nav bar in fragment

I have bottom nav bar define in the Main activity. I have three fragments linked with BottomNavigation bar in fragments I have recycler view so I want to hide B

Why is my smallIcon for Notifications always greyed out?

I tried making the small icon exactly 16x16, gray-scaled, nothing but gray and white (the gray color being hex value 616161), to create a silhouette of my appli

App crash when It makes API call using Retrofit on Android 12 API 32

Can anybody help me please. I already have added FLAG_IMMUTABLE flag to all pending intents for supporting Android 12, but when try to call any API using retrof

App crash when It makes API call using Retrofit on Android 12 API 32

Can anybody help me please. I already have added FLAG_IMMUTABLE flag to all pending intents for supporting Android 12, but when try to call any API using retrof

How to preview an image and only saving it if the user accepts it using cameraX

I use cameraX api for taking a picture and save an image as a file to the internal memory. When the callback for taking a picture has succeeded, I update the ui

Send notification to only one user in firebase [closed]

I have an android app and I want to send notifications to only one user when data is change. How can I do that? I don't want to send my messag

Android - Motion Layout Syntax Error: No Valid LayoutDescription

I am getting the following error when I switch to MotionLayout from ConstraintLayout. I have tried rebuilding the project but no use. Layout Code: <androidx

Android app crashes at start with "E/dex2oat: Failed to create oat file" and "non-0 exit status"

My app (still WIP) runs fine on different devices. But suddenly it refuses to start on Huawei Honor 7 (Android 6.0/EMUI 4.0.3). Logcat gives me the following:

Xamarin.Forms; display the phone number of my SIM Card at device on the screen

I want to display the phone number of my device on the screen. In Xamarin.Android the code is work. But I want to use a code in Xamarin.Forms. I've searched bu

How to create a button in Kotlin that opens a new activity (Android Studio)?

Hello I'm making an app using Android Studio and the Kotlin language and am having trouble getting my button to open a new activity. I have the button created i

java.io.IOException: grpc failed

When I use call getFromLocationName I get an IOException with description "grpc failed". Code that's ran @Override public void onMapReady(GoogleMap googleMap)

How to automatically update a Flutter Mobile app to newer version when the application is not on play store or app store?

let's say i have a Flutter APK hosted on my website where users can download and install , what i'm interested to know is how possible that the application can

can not test api 32 it says invalid date string: Unparseable date: "bb`baiahbgbdGMT+00:00"

I want test fun but i have error it says invalid date string: Unparseable date: "bb`baiahbgbdGMT+00:00" I use emulator api 32 and can not run test > Task :ap

How to verify icon's presence in statusBar of Android with Selenium?

I need to write code (Java, Selenium) that verifies icon's presence in Android status bar. For instance, after enabling airplane mode, a plane icon appears. But

Floating Action Button is duplicated in fragment

In a project, there was a FloatingActionButton in one of the activities. I attempted to add a Fragment in that activity and move the FAB inside that Fragment. E