Step 1: Define items in your menu/main.xml
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context=".MainActivity" >
<item android:id="@+id/menu_about_us"
android:title="About Us"
android:orderInCategory="100"
app:showAsAction="never" />
<item android:id="@+id/menu_our_webpage"
android:title="Our Webpage"
android:orderInCategory="100"
app:showAsAction="never" />
</menu>
Step 2: Add constants for any message names you will want to send
public class MainActivity extends FragmentActivity {