CodenameOne icon indicating copy to clipboard operation
CodenameOne copied to clipboard

Provide to developer implement it own educational relationale permission dialog in android side

Open DurankGts opened this issue 2 years ago • 4 comments

https://github.com/codenameone/CodenameOne/blob/master/Ports/Android/src/com/codename1/impl/android/AndroidImplementation.java

image

you must permit that the developer implement it's custom dialog because your dialog don't adapt to the content and all the time occupy al whole screen when isn't necessary.

all your api use that method when requesting permission in android side. I sugget that you implement a call back in that part of your code for that the developer implement it own educational relationale dialog.

DurankGts avatar Jun 28 '23 17:06 DurankGts

image

this the unneccesary space in your Hard code dialog

DurankGts avatar Jun 28 '23 19:06 DurankGts

Use:

Dialog.setDefaultDialogPosition(BorderLayout.CENTER);

shai-almog avatar Jun 29 '23 07:06 shai-almog

this a simple solution to solve in this moment but in understand that you must implement a call back in codenameone side to show the educational relationale dialog. other issue is that you have hardcode the permission descripction in your source code

DurankGts avatar Jun 29 '23 14:06 DurankGts

this method just resolve the height dialog content no the width dialog

DurankGts avatar Jun 30 '23 23:06 DurankGts