Game Lag on Orientation Change

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Game Lag on Orientation Change

Postby egyptian » Mon Jun 15, 2009 5:50 am

Alright, I've got a game (4Ever Fall -- can be searched for in the market). I can't seem to figure out how to fix this bug that some of my players have found...

in the androidmanifest.xml I have:
Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1.  
  2. <activity
  3.  
  4.         android:name="game"
  5.  
  6.         android:label="@string/app_name"
  7.  
  8.         android:configChanges="keyboardHidden"
  9.  
  10.         android:alwaysRetainTaskState="false"
  11.  
  12.         android:screenOrientation="portrait"
  13.  
  14.         android:multiprocess="false"
  15.  
  16.         android:stateNotNeeded="true">
  17.  
  18.  
Parsed in 0.001 seconds, using GeSHi 1.0.8.4

As you can see, I force the screen to be portrait. Well, some of my players found out that by opening and closing the screen during play, the phone will lag for a second as it attempts to adjust background apps from portrait to landscape. I've put in some code in the public void onConfigurationChanged(Configuration newConfig) to try to deter people from doing that but the fact is that sometimes, it still works.

If you have any ideas, I'd greatly appreciate them; thanks!
Without God, I would not have ANY skills.
egyptian
Developer
Developer
 
Posts: 36
Joined: Fri Jan 16, 2009 5:45 am
Location: Lee's Summit, Missouri

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 6 guests