How can i implement share button of soundcloud which share a link of audio track and when user click on it open this track with soundcloud application.
I searched but i didn't find any thing all of them share audio or image or text or application, so any help of how can i do that.
Thanks in advance.
See this for adding sound from Soundcloud app.
See this for accessing Soundcloud to play song in Soundcloud
This code from enadun may help:
String id = "114143409"; //Track id
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("soundcloud://sounds:" + id));
startActivity(intent);
Related
I am having trouble inserting a passed String from an intent into the google music app's searchbar.
The following code allows me to open up Google Play Music from my app, but leaves the searchbar empty. Would anyone know how to populate Google Play Music's searchbar with my passed in String? any help would be greatly appreciated.
Intent intent = getActivity().getPackageManager().getLaunchIntentForPackage("com.google.android.music");
intent.putExtra(song ,"song to be inserted in google play searchbar");
startActivity(intent);
I have figured it out thanks to the following documentation
In this example, i am opening up the google play store then entering search?q=drake&c=music")); as part of the URI to go to the music tab and search for drake
Intent i = new Intent(android.content.Intent.ACTION_VIEW);
i.setData(Uri.parse("http://play.google.com/store/search?q=drake&c=music"));
startActivity(i);
hey every one I wonder how can I open specific post, album or video from android app in facebook app, I used this code to open specific post but it doesn't work
mActivity.getPackageManager().getPackageInfo("com.facebook.katana", 0);
String uri = "fb://post/" + mData.get(position).getmPostID();
Intent viewIntent = new Intent(Intent.ACTION_VIEW,
Uri.parse(uri));
I want to open this post
https://www.facebook.com/Y.Anti.coup.D/posts/707105232705409
Sorry for my bad English and I hope that you understand my problem
In my app I want to click on a particular button and jump to the youtube app and show a youtube user .Eg http://www.youtube.com/user/punjabiradiousa . How is this possible please suggest some technique?
Do it like this:
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.youtube.com/user/punjabiradiousa")));
Taken from here: Android YouTube app Play Video Intent
This code i have used to play youtube video
Matcher matcher = Pattern.compile("http://www.youtube.com/embed/").matcher(mVideoId);
matcher.find()
Intent lVideoIntent = new Intent(
null,
Uri.parse("ytv://" + mVideoId),
MainScreen.mContext,
com.kids.youtube.OpenYouTubePlayerActivity.class);
startActivity(lVideoIntent);
Its Working
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("")));
I want to create a android search application that can be used to search a video from youtube for given word.
how do I do that. please someone give me a tutorial link. Thanks
Please try the below code .
Intent intent = new Intent(Intent.ACTION_SEARCH);
intent.setPackage("com.google.android.youtube");
intent.putExtra("query", "Android");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
use this API for Searching a Video on Youtube
https://gdata.youtube.com/feeds/api/videos?q=india
where q is word you want to search related videos
for more detail see YouTube APIs
here is a link!
This link has Video and i want to display only video in my Android app. I think this website haven't provided any xml service so that we can use it, Is there any way to show only Video from this link to android app.
Thanks
hii ali you want to play video in your android app it can be do by two ways .
you can use your default youtube app to play the video or you can play it in your browser by following way.
if (isAppInstalled("com.google.android.youtube")) {
Intent intent = new Intent(Intent.ACTION_VIEW, Uri
.parse("vnd.youtube://" + b.getString("video")));
startActivity(intent);
finish();
} else {
// Toast.makeText(this,
// "To view this Video you must install the youtube application in your device..",
// Toast.LENGTH_SHORT).show();
startActivity(new Intent(Intent.ACTION_VIEW, Uri
.parse("http://m.youtube.com/watch?v="
+ b.getString("video"))));
finish();
}
It worked for me
If it worked please vote