0

I want to start the wondershare player from my current activity and to make it (the wondershare player) use some passed argument (throught the call) as a streaming url.

I found some example using VLC instead of wondershare at https://github.com/rauljim/tgs-android/blob/integrate_record/src/com/tudelft/triblerdroid/first/VideoPlayerActivity.java#L211 but I couldn't deploy it in my case.

I appreciate your help.

B.R

  • Possible duplicate of [Launch an application from another application on Android](https://stackoverflow.com/questions/3872063/launch-an-application-from-another-application-on-android) – Mehdi Dehghani Apr 18 '19 at 12:22

2 Answers2

1

Please read this Stack Overflow post with a detailed explanation on launching activities from other apps:

Open another application from your own (intent)

Community
  • 1
  • 1
tbkn23
  • 5,205
  • 8
  • 26
  • 46
  • is there a way to catch the event of the new started applciation ? and I'm getting an ugly message on the screen talking about " buffering the data in order to play it ", is there a way to make hide it ? Thanks – Hafedh Haouala Apr 19 '13 at 09:33
  • You can capture results from the activity that you launch, but it is very dependant on how that other app's activity was implemented, and whether it returns a result or not, etc. Try reading this guide, it might help you: http://developer.android.com/reference/android/app/Activity.html#StartingActivities – tbkn23 Apr 19 '13 at 09:41
  • the new activity is a media content player so, I don't think it's going to return any value or data . Instead, I want to handle its events from within my activity ( if it's possible ) and how can I close the started player when I'm back to my activity ? I appreciate your help – Hafedh Haouala Apr 19 '13 at 10:02
  • As far as I know once you launch another intent it has control, unless it's meant to pass on data/callbacks to the original intent. I'm not familiar with media content player specifically. I'm sorry I can't be of any more help, but perhaps this link will be helpful, it's all about the android media player: http://developer.android.com/reference/android/media/MediaPlayer.html – tbkn23 Apr 19 '13 at 11:02
  • And this guide might be helpful: http://developer.android.com/guide/topics/media/mediaplayer.html – tbkn23 Apr 19 '13 at 11:03
0
    Intent LaunchIntent = getPackageManager().getLaunchIntentForPackage("com.tudelft.triblerdroid.first");
//put your extras here into Intent
    startActivity(LaunchIntent);
Arun C
  • 9,035
  • 2
  • 28
  • 42