<item
android:id="@+id/menu_selectDate"
android:orderInCategory="100"
android:showAsAction="ifRoom|withText"
android:title="@string/date"/>
I need this title to be variable to the selected date
<item
android:id="@+id/menu_selectDate"
android:orderInCategory="100"
android:showAsAction="ifRoom|withText"
android:title="@string/date"/>
I need this title to be variable to the selected date
Try this,
If it array of String then use,
String[] some_array = getResources().getStringArray(R.array.your_string_array);
Or else
String date= getApplicationContext().getResources().getString(R.string.date);
try this way
String res_date = Context.getResources().getString (R.string.date)
Please see the android developer guide this link