fun getDeviceType(context: Context, activity: Activity): String
Get device type. Please note: This functions needs a reference to a Context as well as to an Activity.
context - pass a context
context
activity - pass an activity
activity
Return device type as encoded in the API spec.