Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のように定義された関数があるかどうかを知りたいです。
void executeFunc(String funcName)
どうにかして MyObject.funcName(); を実行できますか?
私がやろうとしているのは、サーバーへのすべての呼び出しを処理し、XML データを返す 1 つのクラスを用意することです。そのため、1 つの AsyncTask を使用して 15 種類ほどの異なる種類の呼び出しを処理したいと考えています。
ありがとう!
リフレクションを使用してこれを行うことができます。