Originally, the LCD should be 800*600, but always get the result of 600*600.
After several days of hard work, we can solve the problem:
Copy codeThe Code is as follows: Package = "myb. x2.app2"
Android: versionCode = "1"
Android: versionName = "1.0" type = "codeph" text = "/codeph">
<Android: screenOrientation = "portrait"
Android: label = "@ string/app_name">
<Android: normalScreens = "true"
Android: smallScreens = "true"
Android: anyDensity = "true"/>
I can solve this problem later. It's not hard to understand, but it took me a long time to find a solution to this problem.
Code in Activity:Copy codeThe Code is as follows: public class myactivity extends Activity {
Public myview v;
/** Called when the activity is first created .*/
@ Override
Public void onCreate (Bundle savedInstanceState ){
Super. onCreate (savedInstanceState );
// SetContentView (R. layout. main );
RequestWindowFeature (Window. FEATURE_NO_TITLE );
GetWindow (). setFlags (WindowManager. LayoutParams. FLAG_FULLSCREEN,
WindowManager. LayoutParams. FLAG_FULLSCREEN );
// Obtain the screen width and height
WindowManager windowManager = getWindowManager ();
Display display = windowManager. getDefaultDisplay ();
Int w = display. getWidth ();
Int h = display. getHeight ();
V = new myview (this, w, h );
SetContentView (v );
V. start ();
}
}