I need an intent to open Google voice search by a button, for that I need to place an Intent in MainActivity .
Intent open3 = getPackageManager().getLaunchIntentForPackage("com.google.android.googlequicksearchbox.VoiceSearchActivity");
startActivity(open3);
Try using the packageName of Voice Search, it works on some devices but not on others, because some devices have Voice Search with another PackageName .