>> To use full screen , just try this
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
...............................
}
Friday, June 25, 2010
getting android screen size
8:16 PM by biplob · 0 comments
you can obtain screen width and height with this:
Display display;
display = ((WindowManager) context .getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
int x = display.getWidth() ;
int y = display.getHeight();
Display display;
display = ((WindowManager) context .getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
int x = display.getWidth() ;
int y = display.getHeight();
Subscribe to:
Posts (Atom)
Tags
- Animation (1)
- hello world (1)
- Screen (2)
- Splash Screen (1)
