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.
メソッドを含むカスタム アクティビティがあり、新しいプロジェクトでは ActionBarActivity を使用する必要があります。ActionBarActivity を拡張できないので、ActionBarActivity に実装をコピー ペーストせずに、カスタム アクティビティの追加メソッドを使用するにはどうすればよいですか?
メソッドを CustomActiviy 内で宣言することができますpublic static。その後は、次のように ActionBarActivity でそれらを呼び出すだけです。
public static
CustomActiviy.method(params);