I am using the Place API on Android. As seen in the documentation, for each type of location, there is a code:
public static final int TYPE_RESTAURANT
Constant Value: 79
How can I use the String representation directly in my code when comparing?
For example:
if plc = Place.TYPE_RESTAURANT then showToast();
I can create a constants list manually, but there should be a better way doing it directly.
Thanks