Difference between revisions of "Launch Ace Stream on Android"
Line 1: | Line 1: | ||
− | Refer to following code | + | Refer to the following code as example: |
<tt><nowiki>Intent intent = new Intent(); | <tt><nowiki>Intent intent = new Intent(); | ||
intent.setComponent(new ComponentName("org.acestream.media", "org.acestream.engine.ContentStartActivity")); | intent.setComponent(new ComponentName("org.acestream.media", "org.acestream.engine.ContentStartActivity")); |
Revision as of 16:32, 12 July 2017
Refer to the following code as example:
Intent intent = new Intent(); intent.setComponent(new ComponentName("org.acestream.media", "org.acestream.engine.ContentStartActivity")); intent.setAction(Intent.ACTION_VIEW); // start by content id intent.setData(Uri.parse("acestream://17120e77548ed851899de2e56f3fd02ff71873e9")); // or start by transport file URL intent.setData(Uri.parse("http://acestream.net/demos/files/avatar.rutor.torrent")); startActivity(intent);