My application requires users to hold down the trackball in order to access an advanced menu. Not all phones have a trackball, however, so I need to remove this requirement for such phones. Is there a way to detect if the phone has a trackball?
Share
Use the
Configurationobject, specifically thenavigationandnavigationHiddenfields. You can get aConfigurationobject viagetResources().getConfiguration().