title: Is there any way to check if device supports stylus input?
body: <p>I want to show an menu item only if the device supports the stylus for input.</p>
  
  <p>Unfortunately i've found nothing check if the device or the display supports the stylus/Spen for input.</p>
  
  <p>Edit:
  I can distinguish between Stylus and Finger after a MotionEvent is triggered using event.getToolType().
  If the tooltype is TOOL_TYPE_STYLUS i can be sure that it supports the stylus.
  If not i can guess if there is a pressure > 0 (relating to <a href="https://stackoverflow.com/q/4294754/1538176">how to detect if the screen is capacitive or resistive in an Android device?</a>)</p>
  
  <p>But i would like to know it in the onCreate method of my activity.</p>
  
  <p>Following is somehow not supported and does not work for me.</p>
  
  <pre><code>Configuration config = getResources().getConfiguration();
  if (config.touchscreen == Configuration.TOUCHSCREEN_STYLUS)
      Toast.makeText(this, "TOUCHSCREEN_STYLUS", Toast.LENGTH_SHORT).show();
  </code></pre>