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. Web service calling from andriod

Hi all,

i want to call a web service call, for that i used ksoap(j2me).when i
do a service call i am getting the folliwing exception
java.lang.NoClassDefFoundError: javax/microedition/io/Connector

Please help me solve this issue


2. Cant get Latitude and Longitude without Internet Connection

Hi all,

I am having problem in getting the latitude and longitude on my

i created an application that only display the "Toast" that display
the latitude and longitude once i
request it to. using the LocationManager.NETWORK_PROVIDER, instead of

And when I try it on my G1, everything was fine when i am connected to
the internet.
but when i disconnect G1 from WiFi, the application cant get the
latitude and longitude anymore..
 The onLocationChanged() is not
triggered anymore, instead, onStatusChanged() is triggered.. And I get

So what i want to ask is :Is internet connection required to retrieve
the coordinate ONLY?

Note that I dont use any maps or visual representation of my location.
All I do was to get the latitude and longitude.

Or do i need to add any extra stuff?

As for the permission these are the ones I used, even though I doubt
that the INTERNET permission is needed..


Anyone has any thought? Thanks


3. Asynchronous ListView

4. debug application - gdb

5. Projection Question

6. Notepad Example 1 Trouble

7. Could someone tell me what differences between 1.5 cupcake and 2.0 donut?