3

I'm developing a very simple application where I have a button .. OnClicking that button the screen of my mobile phone should be shared with my Smart Samsung TV. The question now is how can I enable AllShare Cast feature onClicking that button??

from what I read, I should create an AllShare app from the beginning (see: http://developer.samsung.com/allshare-framework/start) .. but I want to implement this using a normal Android Application.

Appreciate your tips

Alice
  • 117
  • 5
  • 16
  • 3
    AFAIK, AllShare Cast is the same as Miracast, which means on Android 4.2 you can use `Presentation` to customize what gets displayed, versus the default mirroring. – CommonsWare Mar 04 '13 at 14:35
  • Have you followed all the steps from that link? It will install all the required tools to develop an Android app with support for AllShare. – kaderud Mar 04 '13 at 14:36
  • As you can see from the link, after installing the SDK, I should create a new "AllShare project". I don't want to do so, I want to enable this feature in the "Android Project" I'm working on. I mean I don't want to change the project type. – Alice Mar 04 '13 at 14:41
  • @CommonsWare You are right. AllShare Cast is the moniker used by Samsung for Miracast http://en.wikipedia.org/wiki/Miracast – Gaurav Agarwal Mar 04 '13 at 14:48
  • to enable the wifi from my app we write this wifiManager = (WifiManager) this.getSystemService(Context.WIFI_SERVICE); wifiManager.setWifiEnabled(true); I want to use the same technique to enable the all sharecast – Alice Mar 11 '13 at 13:16

1 Answers1

0

I'm using the activateManagerUI() method to enable the AllShare Cast.

Link to the activateManagerUI() javadoc.

I know that it is not the solution you asked for, but as far I know you can't enable the AllShare Cast without asking user to do that.

tomrozb
  • 25,773
  • 31
  • 101
  • 122