Many updates, see CHANGLOG diff
[rokon:rokon.git] / src / com / stickycoding / rokon / device / OS.java
1 package com.stickycoding.rokon.device;\r
2 \r
3 import android.os.Build;\r
4 \r
5 import com.stickycoding.rokon.Debug;\r
6 \r
7 public class OS {\r
8         \r
9         /**\r
10          * The API level. This shouldn't be changed unless you are sure what the consequences are.\r
11          */\r
12         public static int API_LEVEL  = 0;\r
13         \r
14         /**\r
15          * Determines the API level, cross compatible with all SDK's.\r
16          * This shouldn't need to be called twice\r
17          */\r
18         public static void determineAPI() {\r
19                 API_LEVEL = Integer.parseInt(Build.VERSION.SDK);\r
20                 Debug.print("API LEVEL " + Build.VERSION.SDK + " int=" + API_LEVEL);\r
21                 hackBrokenDevices();\r
22         }\r
23         \r
24         public static void hackBrokenDevices() {\r
25        //if (Build.PRODUCT.contains("morrison") || Build.PRODUCT.contains("voles") || Build.PRODUCT.contains("umts_sholes") || Build.PRODUCT.contains("sdk")) {\r
26          //  Graphics.setSupportsVBO(false);\r
27        //}\r
28    }\r
29 \r
30 }\r