You can invoke the action of a third-party application as follows.
final Intent shazamIntent = new Intent("com.shazam.android");
shazamIntent .setComponent(new ComponentName("com.shazam.android","com.shazam.android.Splash"));
startActivity(shazamIntent );
But this is not the best way. If you change the name of the package (which is a very remote feature) or change the name of the activity (it Splashmay change to something else), your application will break. If Shazam has an intention that you can invoke to start listening to the use of the song (not sure what they have).
, Shazam , .