Android 2.2 を実行する HTC Legend を使用して
、オープン ソースのnyaruka/android-sms-relayを実行する必要があります。ただし、このアプリのビルド ターゲットは Android 4.2 です。
ビルド ターゲットを 4.2 から 2.2 に単純に変更しようとしましたが、アプリをコンパイルできませんでした。
次のエラーが発生しました。
public **ActionProvider** getActionProvider() {
// Noop
return null;
}
ActionProvider をタイプに解決できません
@Override
protected Context getActionBarThemedContext() {
return mActivity.**getActionBar()**.getThemedContext();
}
メソッド getActionBar() はタイプ Activity に対して未定義です
ImageButton actionButton = new ImageButton(mActivity, null,
itemId == android.R.id.**home**
? R.attr.actionbarCompatItemHomeStyle
: R.attr.actionbarCompatItemStyle);
actionButton.setLayoutParams(new ViewGroup.LayoutParams(
(int) mActivity.getResources().getDimension(
itemId == android.R.id.**home**
? R.dimen.actionbar_compat_button_home_width
: R.dimen.actionbar_compat_button_width),
ViewGroup.LayoutParams.FILL_PARENT));
ホームを解決できないか、フィールドではありません
この質問に反対票を投じた人は、その理由を説明してください!