I want to set title and subtitile of my action bar before compile time. I got a way to do it like this:
ActionBar ab = getActionBar();
ab.setTitle(\"My Title
The title for the actionbar could be in the AndroidManifest, here:
android:label A user-readable label for the activity. The label is displayed on-screen when the activity must be represented to the user. It's often displayed along with the activity icon. If this attribute is not set, the label set for the application as a whole is used instead (see the element's label attribute). The activity's label — whether set here or by the element — is also the default label for all the activity's intent filters (see the element's label attribute). The label should be set as a reference to a string resource, so that it can be localized like other strings in the user interface. However, as a convenience while you're developing the application, it can also be set as a raw string.