Hi I am working to overlay a Google Heatmap within the map in the Parse.com Anywall app. I am getting errors where the XML files within the Anywall app are not being recognized by the Java file. I get the errors on the XML files such as:
menu cannot be resolved or is not a field
I see that the XML files do not have any errors in the res folder. To restate, I am loading the Google heatmap to the Anywall app. I am worried the project is not calling from the proper R file. Does anyone have a suggestion? I have been adding/removing libraries from the Anywall project, cleaning the project, and restarting Eclipse. Thanks! I'm working on this app as part of my thesis project.
Here's part of the Java file:
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
menu.findItem(R.id.action_settings).setOnMenuItemClickListener(new OnMenuItemClickListener() {
public boolean onMenuItemClick(MenuItem item) {
startActivity(new Intent(MainActivity.this, SettingsActivity.class));
return true;
}
});
This is a screen capture of the Java file.
This is the XML.
<menu xmlns:android="http://ift.tt/nIICcg" >
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:showAsAction="never"
android:title="@string/action_settings"/>
</menu>
No comments:
Post a Comment