Back to project page AerisAndroidLibrary.
The source code is released under:
Apache License
If you think the Android project AerisAndroidLibrary listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.example.db; // w w w .j a v a2 s .co m import com.hamweather.aeris.util.WeatherUtil; public class MyPlace { public String name; public String country; public String state; public boolean myLoc = false; public double latitude; public double longitude; public String getTextDisplay(String defaultText) { String text = defaultText; if (state != null && state.length() > 0) { text = String.format("%s, %s, %s", WeatherUtil.capitalize(name), state.toUpperCase(), country.toUpperCase()); } else { text = String.format("%s, %s", WeatherUtil.capitalize(name), country.toUpperCase()); } return text; } }