Search Unity

If Android Api Level >= 16

Discussion in 'Unity Everyplay' started by Hoskins355, Jun 11, 2014.

  1. Hoskins355

    Hoskins355

    Joined:
    Jan 3, 2013
    Posts:
    142
    I have implemented everyplay into one of my apps, but everyplay is only supported for android 4.1 Is it possible to check the android api for the device running the app and if it is greater than or equal to 4.1 show everyplay controls. My app works fine on earlier versions of android except for everyplay. I was trying

    Code (JS):
    1. if (android.os.Build.VERSION >= 16){
    2.                     if (GUI.Button (Rect (337,470,350,263), ShareVideoButton, "")) {
    3.                         Everyplay.ShowSharingModal();
    4.                         }
    5.             }
    I was trying this in js from examples I have found online I don't understand why it is not working. I get unknown identifier android

    Thanks
    Brandon
     
    Last edited: Jun 12, 2014
  2. Hoskins355

    Hoskins355

    Joined:
    Jan 3, 2013
    Posts:
    142
    Any Ideas I could just set the minimum api to 16, but then my app won't work on older devices. And the app works fine on older devices minus EveryPlay so it is far from ideal. Any Ideas would be greatly appreciated.

    Thanks
    Brandon
     
  3. trinta

    trinta

    Unity Technologies

    Joined:
    Jun 5, 2013
    Posts:
    24