I\'m just started the Android beginners tutotial and I now face a problem. On this page under \"Respond to Action Buttons\" it tells me to define a switch statement with som
This is the code that you have to use in those methods:
private void openSearch(){
startActivity(new Intent(SearchManager.INTENT_ACTION_GLOBAL_SEARCH));
}
private void openSettings(){
startActivity(new Intent(Settings.ACTION_SETTINGS));
}
The openSearch() method execute the google global search of the cellphone. The openSettings() method open the global configuration of the cellphone.
I'm also a beginner in android,hope this helps with the question. Good Luck