Question

I am developing an app with actionbarsherlock. Because i need to add compatibility for device under 3.0. In main(first) activity i need to hide actionbar (for design issue). Also that activity has an option menu. Question is how can i add legacy menu for recent version of device which doen't have any hardware menu button. I have checked all the options but not working. I am adding some options here

@Override
  public boolean onCreateOptionsMenu(Menu menu)
  {
        MenuInflater menuInflater = getMenuInflater();
    menuInflater.inflate(R.layout.coredialer_menu, menu);
    return true;
  }
 #manifest
 <uses-sdk
        android:minSdkVersion="9"
        android:targetSdkVersion="10" />
Was it helpful?

Solution

I have solved my problem by removing actionbarsherlock.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top