title: Questions about Xposed API int method
body: <p>Public String class => Hooking success</p>
  
  <p>Public int class => Hooking failure</p>
  
  <pre><code>Button btn;
  TextView up;
  int count = 0;
  
  public int ButtonClickCount(int a)
  {
      return a++;
  }
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      System.out.println("test");
      btn = (Button) findViewById(R.id.btn);
      up = (TextView) findViewById(R.id.up);
  
      btn.setOnClickListener((new View.OnClickListener(){
  
          @Override
          public void onClick(View v) {
              up.setText("" + ButtonClickCount(++count));
          }
      }));
  }
  </code></pre>
  
  <p>}</p>
  
  <p>public class Hook implements IXposedHookLoadPackage {</p>
  
  <pre><code>@Override
  public void handleLoadPackage(final XC_LoadPackage.LoadPackageParam lpparam) throws Throwable {
      /*final ApplicationInfo appinfo = lpparam.appInfo;
      XposedBridge.log(String.valueOf(appinfo));*/
  
      if (!lpparam.packageName.equals("com.study")) {
          //XposedBridge.log("PackageName Error");
          return;
      } else {
          XposedBridge.log("Loaded app: " + lpparam.packageName);
      }
  
  
      findAndHookMethod(
              "com.study.MainActivity",
              lpparam.classLoader,
              "ButtonClickCount",
  
              new XC_MethodHook() {
                  @Override
                  protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
                      super.beforeHookedMethod(param);
                      XposedBridge.log("before");
                  }
  
                  @Override
                  protected void afterHookedMethod(MethodHookParam param) throws Throwable {
                      super.afterHookedMethod(param);
                      XposedBridge.log("after");
                      param.setResult(100);
                  }
              }
  
      );
  }
  
  /*private void findAndHookMethod(String s, ClassLoader classLoader, Class&lt;int[]&gt; integerClass, String randomRange, XC_MethodHook xc_methodHook) {
  }*/
  </code></pre>
  
  <p>}</p>
  
  <p>Why is the int class not hooked? i need help</p>
  
  <pre><code>findAndHookMethod(
          "com.study.MainActivity",
          lpparam.classLoader,
          "ButtonClickCount",
  </code></pre>
  
  <p>this code is error.. (NoSuchMethodError)</p>
  
  <p>If executed with the following code, the hooking module does not work.</p>
  
  <pre><code>findAndHookMethod(
          "com.study.MainActivity",
          lpparam.classLoader,
          "ButtonClickCount",
          int.class,
  </code></pre>