Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8027105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:42:47+00:00 2026-06-04T23:42:47+00:00

Im developing a game for the kindle fire, the game always run with the

  • 0

Im developing a game for the kindle fire, the game always run with the bar hidden.

Only when the user enters to the pause menu the bar should appear , I only want that the bar shows up over the game.

But it seems that when the bar show up GlSurfaceView.getHeight() changes from 600 to 580, and my game resizes, but I dont want that behavior,

I just want that the bar shows up over the game and my game doesnt move , I’ve already tried with GlSurfaceView.setMinimumHeight(600);

but the kindle simply ignores that.

this is how my game always runs : enter image description here

and when i activate the bar this happens :

enter image description here

instead of this :

enter image description here

you know a way to avoid this?

Thanks!

To create the GlSurfaceView i do the following:

OnCreate() {

s_activity.m_view = new GameGLSurfaceView(s_activity.getApplication(), true, pixelSize,depthSize, stencilSize);

}

public GameGLSurfaceView(Context context, boolean translucent,int pixelSize, int depth, int stencil) 
{
super(context);
mRenderer = new GameRenderer(context, this);
setRenderer(mRenderer);

}

to Hide and show the bar i use this function

private static final int AMAZON_FLAG_NOSOFTKEYS = 0x80000000;
private static final int FLAG_SUPER_FULLSCREEN = AMAZON_FLAG_NOSOFTKEYS | WindowManager.LayoutParams.FLAG_FULLSCREEN;

public static void toggleKindleBar(final int toDo)
{   
    if( s_activity != null)
        s_activity.runOnUiThread(new Runnable()
        {
            public void run()
            {
                s_activity.getWindow().clearFlags( toDo!=1? WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN : FLAG_SUPER_FULLSCREEN);
                s_activity.getWindow().addFlags( toDo!=1? FLAG_SUPER_FULLSCREEN:WindowManager.LayoutParams.FLAG_FULLSCREEN);

            }
        });
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T23:42:49+00:00Added an answer on June 4, 2026 at 11:42 pm

    possible solutions:

    1. try this on the onCreate() method of the activity:

      getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);

      do note that according to my experience , the kindle fire has some weird problems with some views when they are used while this code runs , so even if it works , please do some extensive testing .

    2. try to set the manifest to have some flags for the configChanges, but i didn’t tested it and i don’t have the kindle fire anymore .

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a game in which the user can turn on / off
I am developing a game using LibGdx, when i tried to run the game
I'm developing a game for iOS that should include the multiplayer. It's not a
i am developing a game.i want to display score on button click.but it should
I'm developing a game where different bitmap run on the screen (a SurfaceView). Since
I am developing a game.if the user presses device back button while playing the
i am developing game.i am displaying gun object center bottom of the screen.when user
I am developing a game which works only in landscape mode. When I import
Hi i am developing game level editor.Currently I am using win32 with directX.But with
Developing a game with AndEngine GLES2 I am having an issue trying to change

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.