title: Not able to click on device Menu button using Appium in Android
body: <p>I am working on automation of mobile native app using Appium in Java language. I want to click on device Menu button.</p>
  
  <p>Method 1:</p>
  
  <pre><code> JavascriptExecutor js = (JavascriptExecutor) driver;
   js.executeScript("mobile: keyevent", 82);
  </code></pre>
  
  <p>tried but not working.</p>
  
  <p>Method 2:-</p>
  
  <pre><code>HashMap swipeObject = new HashMap();
  swipeObject.put("keycode", 82);
  ((JavascriptExecutor ) driver).executeScript("mobile: keyevent", swipeObject);
  </code></pre>
  
  <p>and </p>
  
  <pre><code>driver.execute_script("mobile: keyevent", {"keycode": 82})
  </code></pre>
  
  <p>this is not working, can any one help me on this?</p>