Launch Preinstalled App from activity (Google Voice Search) Android
问题 I am trying to use the following code to launch Google Voice Search from my app. It works fine on the Nexus One where Google Voice Search is a downloaded App, however it does not work on my Galaxy Nexus where it comes preinstalled. when it gets to the getLaunchIntentForPackage, the result is NULL. Can anyone help out? Intent i = new Intent(Intent.ACTION_MAIN); PackageManager manager = getPackageManager(); try { i = manager.getLaunchIntentForPackage("com.google.android.voicesearch"); } catch