Permission Dialog while Screen Orientation change in Android Marshmallow crashing the App -


how handle permission dialog box during screen orientation in android m devices?

in case, after changing screen orientation, , clicking okay button in permission dialog box crashes app.

my workaround situation: once permission dialog box coming, locking screen current orientation (portrait/landscape). when user presses button, unlocking screen.

for locking/unlocking orientation, refer link: android: temporarily disable orientation changes in activity


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

node.js - Express and Redis - If session exists for this user, don't allow access -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -