This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void printPermissions(Context context) { | |
PackageInfo android; | |
try { | |
android = context.getPackageManager().getPackageInfo("android", PackageManager.GET_PERMISSIONS); | |
} catch (PackageManager.NameNotFoundException e) { | |
e.printStackTrace(); | |
return; | |
} | |
PermissionInfo[] permissions = android.permissions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BitmapDescriptor markerIcon = vectorToBitmap(R.drawable.vectordrawableicon, | |
ContextCompat.getColor(getApplicationContext(), | |
R.color.marker)); | |
mMap.addMarker(new MarkerOptions() | |
.icon(markerIcon) | |
.position(LatLng()) | |
); | |
private BitmapDescriptor vectorToBitmap(@DrawableRes int id, @ColorInt int color) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<color name="material_red50">#ffffebee</color> | |
<color name="material_red100">#ffffcdd2</color> | |
<color name="material_red200">#ffef9a9a</color> | |
<color name="material_red300">#ffe57373</color> | |
<color name="material_red400">#ffef5350</color> | |
<color name="material_red500">#fff44336</color> | |
<color name="material_red600">#ffe53935</color> | |
<color name="material_red700">#ffd32f2f</color> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<color name="material_red50">#ffffebee</color> | |
<color name="material_red100">#ffffcdd2</color> | |
<color name="material_red200">#ffef9a9a</color> | |
<color name="material_red300">#ffe57373</color> | |
<color name="material_red400">#ffef5350</color> | |
<color name="material_red500">#fff44336</color> | |
<color name="material_red600">#ffe53935</color> | |
<color name="material_red700">#ffd32f2f</color> |