Back to project page Android-Wireless.
The source code is released under:
MIT License
If you think the Android project Android-Wireless listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package generics; //from w w w. j a v a 2 s . c o m import java.lang.reflect.Method; import android.net.wifi.WifiManager; import android.view.View; /** * A Class containing some generic functions for Methods. * @author Michael Leith */ public final class Methods{ View view; Methods(View v) { view = v; } /** Null if not found */ static public final Method getMethodByName(WifiManager manager, String s) { Method[] curMethods = manager.getClass().getDeclaredMethods(); for(Method m : curMethods) if(m.getName().equals(s) ) return m; return null; } }