Java Code Examples for com.android.sdklib.AndroidVersion#getApiString()
The following examples show how to use
com.android.sdklib.AndroidVersion#getApiString() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CreateAvdVisualPanel3.java From NBANDROID-V2 with Apache License 2.0 | 4 votes |
private String getSelectedApiString() { AndroidVersion version = selectedImage.getVersion(); return version.getApiString(); }
Example 2
Source File: TemplateMetadata.java From NBANDROID-V2 with Apache License 2.0 | 4 votes |
/** * Computes a suitable build api string, e.g. for API level 18 the build API * string is "18". */ @NotNull public static String getBuildApiString(@NotNull AndroidVersion version) { return version.isPreview() ? AndroidTargetHash.getPlatformHashString(version) : version.getApiString(); }