javaandroidshareactionprovider

copying api source into project in android


I am trying to modify the behavior of ShareActionProvider in android such that it does not show history. In this process i need to copy source code of ShareActionProvider, ActivityChooserModel and ActivityChooserView into my android eclipse project. I am facing resolve issues like eclipse is not able to resolve R.attr.actionModeShareDrawable, ActivityChooserModel, ActivityChooserView. This is happening in all the classes which i have copies from api source. Is there are way to resolve this?


Solution

  • You also need to copy the values from attrs.xml from the android source code