1

I am new to android , I am currently working on the FB style slide out menu. I find out many sample project here but could not be able to run that successfully in android 2.2(froyo) version as they are working fine in android 3.x version like HONEYCOMB .

the error occur at ::if(item.getItemId() == android.R.id.home)

here, home is not recognized and also at:: getActionBar() marking that this method is not defined: and in values file under res "values-v11" is giving error

thanks in advance for GOOD replies

4

1 に答える 1

0

ほとんどの場合、Honeycomb にのみ追加された API を使用しているため、古いバージョンの Android では使用できません。

これらの API は、ActionBar である可能性が高く、おそらく Fragments です。

古いバージョンでこれらの機能を使用するには、Jake Wharton によるActionBarSherlockとGoogleのサポート ライブラリを使用できます。これらをまとめて、古いバージョンの Android で ActionBars、Fragments などを使用できます。

于 2012-11-13T06:39:50.093 に答える