Send song title to spotify to start playing from android app
<p>Is there any way to send a song title to the spotify app from my app so that it will start playing the song through spotify?</p>

<p>I tried using the bellow code i found in another code but nothing happens.</p>

<pre><code>Intent intent = new Intent(Intent.ACTION_MAIN);
                intent.setAction(MediaStore.INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH);
                intent.setComponent(new ComponentName("com.spotify.mobile.android.ui", "com.spotify.mobile.android.ui.Launcher"));
                intent.putExtra(SearchManager.QUERY, "michael jackson smooth criminal");
</code></pre>

<p>I know shazam is able to do this.</p>
