JetBoy Sample Question

by Hamed3d » Thu, 06 Aug 2009 01:18:35 GMT

Sponsored Links
 Hi there,

I have a question regarding the Jeyboy game that comes with the SDK. I
noticed the game runs in Landscape mode which is cool. I looked at the
code but I can;t find the command that forced the game to be played in
landscape mode.
I wrote a simple code that draws a image but I want it to be always on
Landscape mode.How can I do it?

Hope someone helps me out here.



JetBoy Sample Question

by Hamed3d » Thu, 06 Aug 2009 01:27:44 GMT

 I found the answer. it is being done in manifest:

 android:screenOrientation=["unspecified" | "user" | "behind" |
                                     "landscape" | "portrait" |
                                     "sensor" | "nonsensor"]


Sponsored Links

JetBoy Sample Question

by cellurl » Thu, 06 Aug 2009 21:01:50 GMT

 This tutorial shows how to make the switch from landscape to portrait. 



JetBoy Sample Question

by Stefan Novak » Thu, 06 Aug 2009 21:13:33 GMT

 Jim - thanks for that link!  It looks like a terrific resource!

Stefan Novak


Other Threads

1. Trying to get rid of my last few Long calculations in my game and completely turn it into FP format. System.currentTimeMillis() giving me a headache.

That is the wrong direction to be going. Floating-point calculations are
awful on mobile devices, since they usually lack floating-point
hardware. Your game will perform better if you eliminate as many
floating-point calculations as possible, replacing them with fixed-point

Mark Murphy (a Commons Guy) |

Android App Developer Training:


2. Inflating error after animation run

Hi all,

I apply an animation on my current displayed layout. I set an
animation listener. When animation is ended, I'm trying to load a
layout, using inflater, inside the current layout. But I've always the
following error :
ERROR/AndroidRuntime(2315): android.view.InflateException: Binary XML
file line #7: Error inflating class java.lang.reflect.Constructor

Do you know if I can call a callback to check if the current layout is
loaded correctly before to call gatLayoutinflater ?


3. Cari aman

4. continous raw audio playback using AudioTrack.

5. UI HTC Espresso. Best!

6. How to do Both horizontal and vertical scrolling on a screen

7. Download NemoPlayer.apk