本文整理汇总了Java中com.vuforia.Vuforia.INIT_LICENSE_ERROR_NO_NETWORK_TRANSIENT属性的典型用法代码示例。如果您正苦于以下问题:Java Vuforia.INIT_LICENSE_ERROR_NO_NETWORK_TRANSIENT属性的具体用法?Java Vuforia.INIT_LICENSE_ERROR_NO_NETWORK_TRANSIENT怎么用?Java Vuforia.INIT_LICENSE_ERROR_NO_NETWORK_TRANSIENT使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.vuforia.Vuforia
的用法示例。
在下文中一共展示了Vuforia.INIT_LICENSE_ERROR_NO_NETWORK_TRANSIENT属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getInitializationErrorString
private String getInitializationErrorString(int code)
{
if (code == Vuforia.INIT_DEVICE_NOT_SUPPORTED)
return "Failed to initialize Vuforia. This device is not supported.";
if (code == Vuforia.INIT_NO_CAMERA_ACCESS)
return "Failed to initialize Vuforia. Camera not accessible";
if (code == Vuforia.INIT_LICENSE_ERROR_MISSING_KEY)
return "Vuforia App key is missing. Please get a valid key, by logging into your account at developer.vuforia.com and creating a new project.";
if (code == Vuforia.INIT_LICENSE_ERROR_INVALID_KEY)
return "Invalid Key used. Please make sure you are using a valid Vuforia App Key.";
if (code == Vuforia.INIT_LICENSE_ERROR_NO_NETWORK_TRANSIENT)
return "Unable to contact server. Please try again later.";
if (code == Vuforia.INIT_LICENSE_ERROR_NO_NETWORK_PERMANENT)
return "No network available. Please make sure you are connected to the Internet.";
if (code == Vuforia.INIT_LICENSE_ERROR_CANCELED_KEY)
return "This app license key has been canceled and may no longer be used. Please get a new license key.";
if (code == Vuforia.INIT_LICENSE_ERROR_PRODUCT_TYPE_MISMATCH)
return "Vuforia App key is not valid for this product. Please get a valid key, by logging into your account at developer.vuforia.com and choosing the right product type during project creation.";
else
{
return "Failed to initialize Vuforia.";
}
}
示例2: getInitializationErrorString
private String getInitializationErrorString(int code)
{
if (code == Vuforia.INIT_DEVICE_NOT_SUPPORTED)
return mActivity.getString(R.string.INIT_ERROR_DEVICE_NOT_SUPPORTED);
if (code == Vuforia.INIT_NO_CAMERA_ACCESS)
return mActivity.getString(R.string.INIT_ERROR_NO_CAMERA_ACCESS);
if (code == Vuforia.INIT_LICENSE_ERROR_MISSING_KEY)
return mActivity.getString(R.string.INIT_LICENSE_ERROR_MISSING_KEY);
if (code == Vuforia.INIT_LICENSE_ERROR_INVALID_KEY)
return mActivity.getString(R.string.INIT_LICENSE_ERROR_INVALID_KEY);
if (code == Vuforia.INIT_LICENSE_ERROR_NO_NETWORK_TRANSIENT)
return mActivity.getString(R.string.INIT_LICENSE_ERROR_NO_NETWORK_TRANSIENT);
if (code == Vuforia.INIT_LICENSE_ERROR_NO_NETWORK_PERMANENT)
return mActivity.getString(R.string.INIT_LICENSE_ERROR_NO_NETWORK_PERMANENT);
if (code == Vuforia.INIT_LICENSE_ERROR_CANCELED_KEY)
return mActivity.getString(R.string.INIT_LICENSE_ERROR_CANCELED_KEY);
if (code == Vuforia.INIT_LICENSE_ERROR_PRODUCT_TYPE_MISMATCH)
return mActivity.getString(R.string.INIT_LICENSE_ERROR_PRODUCT_TYPE_MISMATCH);
else
{
return mActivity.getString(R.string.INIT_LICENSE_ERROR_UNKNOWN_ERROR);
}
}