Make Soundcloud open in Soundcloud app on Android

I have a mobile application that links to the Soundcloud track. On Android, clicking on these links opens a dialog box asking the user to "Complete the action" using their browser or Soundcloud application.

enter image description here

Is there a way to get around this screen and just play the track in Soundcloud player?

This is the code that I am currently using. Please suggest any changes or a new way to do this.

    Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://m.soundcloud.com/blackburnravers/dj-nj-house-music-volume-3"));
    startActivity(intent);
0
source share
3 answers

, . , . , Android.

String id = "114143409"; //Track id
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("soundcloud://tracks:" + id));
startActivity(intent);

: Android.

Soundcloud sounds tracks

String id = "114143409"; //Track id
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("soundcloud://sounds:" + id));
startActivity(intent);
+7

soundcloud://track Android. soundcloud,

String id = "yOUR_id"; //Track id
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("soundcloud://sounds:" + id));
startActivity(intent);
+2

:

String id = "123395690"; //Userid
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("soundcloud://users:" + id));
startActivity(intent);
0
source

Source: https://habr.com/ru/post/1649155/


All Articles