5,706 questions
0
votes
0
answers
46
views
How to rotate AlertDialog correctly?
I'm using this code:
@Override
protected void onResume() {
super.onResume();
AlertDialog d = new AlertDialog.Builder(this)
.setTitle("This is the Dialog Title")
...
1
vote
1
answer
79
views
Handling errors in Application class
I have an Android app with most of my logic written in C++ and Kotlin is used for UI or interacting with Android's SDK.
When a non-recoverable error occurs, the preference is to display an alert ...
0
votes
2
answers
65
views
App runs on emulator but crashes on physical devices
I have a method that works on an emulator in Android Studio but crashes on a physical device. I've tried it on two separate devices.
It's not graphical, so it doesn't have to do with resolution.
This ...
3
votes
1
answer
762
views
Unable to get correct import for AlertDialog (Or deprecated import?)
I'm following a Room tutorial for Kotlin and (at about 40 minutes) I get the following error:
Below is my code (I checked it and it seems exactly how shown in the video)
@Composable
fun ...
0
votes
1
answer
41
views
Flutter AlertDialog Container minimum width size controll
Hello mates
i was making instagram colon app with flutter and i wanted to making this pop up page but when i tried to make container size less than 100, it wasn't work and i couldn't find the way can ...
0
votes
1
answer
26
views
MaterialAlertDialog Popup won't adjust pan until top
I recently migrated an AlertDialog to a MaterialAlertDialog
(and improved the overall layout, e.g. using the native buttons
instead of custom buttons in the custom view of the dialog.)
Previously I ...
1
vote
0
answers
35
views
Empty space when creating an AlertDialog, only on Oppo phones
I was just trying to migrate my application from a Realme to an Oppo and everything looked fine until I noticed the displayed dialogs were not centered. Here is the example (I will only talk about the ...
0
votes
0
answers
114
views
Not Able to use the keyboard on Android 14
Android application type
Xamarin.Forms application
Xamarin.Android application
Affected platform version
Android 14 Emulator (pixel 7 pro)
enter image description here
Un affected platforms tested
...
0
votes
1
answer
32
views
Change name of positive/negative button in AlertDialog wrapped inside a DialogFragment
I have an custom DialogFragment class ListWorkoutTypeDialog, which opens a dialog to delete or edit workout types for my gym app via an AlertDialog inside the class. The goal is to be able to change ...
0
votes
1
answer
94
views
Flutter state management on AlertDialog
I am trying to implement a system where I use a date picker to alter a date, but I am doing it on an alertDialog, and when I change the value with the date picker, it does not change in the ...
0
votes
0
answers
28
views
I have an AlertDialog with 100 buttons and it appears with 400ms delay when I call show() for the first time
When I call dialog.show() later, it appears very fast. Seems like Android UI uses some sort of cache. How to force Android create this cache in the background?
dialogLaout.invalidate didn't help
...
0
votes
2
answers
12k
views
Shadcn ui Alert dialog closes automatically when clicking the trigger from dropdown menu
So I know this is a problem other people have had but the all used the alert dialog in the same file. I try to open the alert dialog with "<DelteAlertDialog />" and have a ...
0
votes
1
answer
79
views
Alert Dialog is not showing when I call it from a VPNService class
I am creating a VPN Local Service on Android studio as my Thesis project for my university. Specifically, i have the main class on my Java File which is VPNLocalService extends Service, in that class ...
0
votes
1
answer
84
views
AlertDialog not working above the QuillTextEditor
I’m building an AlertDialog for when the user clicks the button but the fields are empty. Right now, the alert is showing, but I cannot interact with the buttons due to the HTML editor. Not sure if it ...
0
votes
1
answer
35
views
How do I create a dialog box after meeting a condition by checking firebase?
So I am currently writing an app which connects to a sensor module through Bluetooth and receives data in the form of a string. The data will contain a UID which will be compared to the key of ...
0
votes
0
answers
42
views
Update AlertDialog from within "for" loop
My app (Java 11, minSDK 29, targetSDK 30) uses an AlertDialog to inform the user of what step of the startup process it's currently on, which includes showing the name of the file that's currently ...
5
votes
1
answer
3k
views
Android Ime callback not found issue on AlertDialog dismiss
If we have a customized AlertDialog containing some input field, selection of that component would prompt the IME virtual keyboard of the device to pop up. Now, if we dismiss the entire AlertDialog by ...
0
votes
1
answer
45
views
Custom font for Alert Dialog message
I'm using the following style for my custom AlertDialog. The specified font "myfont.tff" is applied on the AlertDialog title and buttons, but not on the AlertDialog message. What do I need ...
0
votes
1
answer
40
views
Android deep code communication with user via AlertDialog
In Android game (written in Java) I have an activity that's calling service and service calls a manager that checks certain values.
Activity code looks something like this:
public void performACheck() ...
0
votes
1
answer
50
views
Change the Text of AlertDialog positiveButton after clicking
I have an AlertDialog that has a positive button (OK) and a cancel. When pressing OK, I have a process that should take around 10s to finish (downloading an image from a URL and then showing it on the ...
0
votes
0
answers
152
views
How to get image from gallery in a non activity/fragment class? - koltin
I'm using the requestForLoadImage which is an ActivityForResultLauncher<Intent> built in MainActivity to get image from gallery.
I've passed the requestForLoadImage to the productAlertDialog ...
0
votes
1
answer
4k
views
How to put an image at the End of a Row in Jetpack Compose with following dimsensions in android?
I have created a Row inside a Row, the dimensions specified for padding for inner row should be followed as specified. So, I want to put two images inside the inner Row with one image at the Start of ...
-1
votes
1
answer
30
views
Why has my Android app suddenly stopped displaying dialogs?
My app displays dialogs, warning the user of various situations and requiring user input. These dialogs were all working fine, but now they are no longer displaying; after upgrading from Android ...
6
votes
1
answer
580
views
AlertDialog in Android Api 29 used to dim the screen when it was shown, but in Api 34 instead it creates a shadow around the dialog
AlertDialog in Android Api 29 used to dim the screen except for the dialog when it was shown, but in Api 34 instead it creates a shadow around the dialog.
The AlertDialog in android used to dim the ...
0
votes
1
answer
363
views
How can I update a LazyColumn's listitems inside an AlertDialog from a ViewModel properly in Jetpack Compose? - Android
I'm trying to make a recipe app for practice that saves Recipes and Ingredients in a ROOM database. The recipes are shown in the main screen, and there is a FloatingActionButton that lets you add a ...