D-pad Behavior MB200-Motorola Add-on

Posted: October 8, 2009 in Android, Java, Mobile
Tags: ,

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.<direction>

             // and display a toast

          }

..to get the values as you cannot depend on model numbers, see the post here.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s