zorro wrote:You can switch to fullscreen in two ways, from the app or using the manifest file.
1. In activity onCreate function:
2. In manifest file:
That's it.. Both methods work just fine. Second method is better I guess because the app starts fullscreen. The first method sets the fullscreen after the window appears (and also someone here on the forum said that the performance is lower too). I didn't notice performance differences between the two methods, but I reccomend the second method (which i'm also using right now).
zorro wrote:That sample is hot handling the screen rotation and this is the reason for the crash. The sample is just setting things up, but is assuming that you don't change the orientation. I tried the sample on a G1 with Android 1.6 and it freezes after a few switches, just like you said. Then I added the line
into the manifest in the activity tag, and now works just fine. The screen is rotating fine and the application does not crash. Just try it. The line tells the OS that your application does not need to be reseted at orientation changes.
Users browsing this forum: No registered users and 5 guests