Some of you in the many developer email lists were asking about the MB200 Motorola emulator D-pad behaviour. The post about the bug is here. As Anas of Motorola has mention you could use:
public void whatsAvailable() { Configuration myConfig = new Configuration(); Context context = getApplicationContext(); int duration = Toast.LENGTH_SHORT; CharSequence text = ""; myConfig.setToDefaults(); myConfig = getResources().getConfiguration(); switch (myConfig.orientation){ // test for Configuration...to get the values as you cannot depend on model numbers, see the post here.
No comments:
Post a Comment