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.

Thanks,


--~--~---------~--~----~------------~-------~--~----~



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.

 http://kronox.org/documentacion/Hello_Android.pdf 

-jim





--~--~---------~--~----~------------~-------~--~----~



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
equivalents.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Training: http://commonsware.com/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