i am trying to build android, with a small addition, but i gave me the following errors:
packages/apps/Settings/src/com/android/settings/cyanogenmod/ProgressBar.java:144: cannot find symbol symbol : variable ram_bar_button_reset location: class com.android.settings.R.string menu.add(0, MENU_RESET, 0, R.string.ram_bar_button_reset) ^ packages/apps/Settings/src/com/android/settings/cyanogenmod/ProgressBar.java:162: cannot find symbol symbol : variable ram_bar_reset location: class com.android.settings.R.string alertDialog.setTitle(R.string.ram_bar_reset);
when i open up the file with the correspondending lines:
@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater)
{
menu.add(0, MENU_RESET, 0,
R.string.ram_bar_button_reset)
.setIcon(R.drawable.ic_settings_backup)
.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS);
}
and:
private void resetToDefault()
{
AlertDialog.Builder alertDialog = new AlertDialog.Builder(getActivity());
alertDialog.setTitle(R.string.ram_bar_reset);
alertDialog.setMessage(R.string.progressbar_reset_message);
alertDialog.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int id)
{
ProgressBarColorReset();
}
});
alertDialog.setNegativeButton(R.string.cancel, null);
alertDialog.create().show();
}
can someone tell me what to do?