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. notifyDataSetChanged() not updating listview after orientation change

Classic problem!

Use a static variable rather than onRetainConfigurationChange() lot of state
data to be saved && doesn't work all the time!!

Gyan

-- 

2. Getting FileNotFound Exception when using FileReader

I am trying to read data from a text file using FileReader.
The problem i am facing is, everytime i run my code on the AVD, i see
an error in LogCat with FileNotFound expcetion.

I have placed the file in res\raw folder.

Here is a snippet of my code.

try{


                FileReader fr = new FileReader("4ltrwrds");
                }
        catch(FileNotFoundException e) {
                System.out.println("File not Found");
                System.exit(0);
        }

I am using eclipse and get this error when i run the project using the
AVD.

However i have the same code in a different project and it runs fine.

-- 

3. Extremely Simple Question

4. ListView refresh in ListActivity

5. ListView and CheckedTextView questions - help me, thanks!!!!

6. Implementing Recovery Mode in Android

7. Hebrew Fonts in Froyo?