Hussain Jamali

Greenhorn
+ Follow
since May 10, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Hussain Jamali

public class AlarmSenderHome extends Activity {

@Override
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.custommenu, menu);
return true;
}


@Override
public boolean onOptionsItemSelected(MenuItem item)
{
super.onOptionsItemSelected(item);
Toast.makeText(getApplicationContext(), "Preference Selected", Toast.LENGTH_SHORT);
switch(item.getItemId())
{
case R.id.preferences:

Toast.makeText(getApplicationContext(), "Preference Selected", Toast.LENGTH_SHORT);
return true;
default:
return super.onOptionsItemSelected(item);



}


}
}

I can see menu on Screen But while selecting Menu items onOptionsItemSelected not getting triggred

Can some Help, where i am lacking in
13 years ago