• Latest Code...

    Featured Post

    Implementing Hilt in a Kotlin Android Jetpack Compose Project with MVVM Architecture

     In modern Android development, maintaining a scalable codebase can be challenging, especially when it comes to dependency management. Hilt,...

    Temporarily disable orientation changes in an Activity

    I have search on internet and test on my device and emulator. I got solution of how to temporarily disable orientation changes in an Activity. Here is the solution which is get various site, specially Stackoverflow.

    setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_NOSENSOR);

    and then

    setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);

     it really works

    Go to more:
    http://stackoverflow.com/questions/3821423/background-task-progress-dialog-orientation-change-is-there-any-100-working/3821998#3821998

    http://stackoverflow.com/questions/3611457/android-temporarily-disable-orientation-changes-in-an-activity/3611554#3611554

    Contact Form

    Name

    Email *

    Message *