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 class LocaleSwitchActivity extends Activity { | |
private static final String LOG_TAG = LocaleSwitchActivity.class.getSimpleName(); | |
private static final String LOCALE_EXTRA = "locale"; | |
private Locale customLocale; | |
private boolean restartingForLocaleChangeFlag; | |
protected void useLocale(Locale locale) { | |
Intent intent = getIntent(); |
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
Source code is copyright 2014 [email protected] | |
Feel free to use and modify for commercial and non-commercial purposes. | |
A link back to this page must be included UNLESS the source is functionally changed. |
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
import java.util.Timer; | |
import java.util.TimerTask; | |
/** | |
* This is a renewable timer. Begin by calling {@link #arm()}, renew it by | |
* calling {@link #rearm()}, and cancel it by calling {@link #disarm()}. | |
* | |
* @param <T> | |
* type of object stored and passed to listener. | |
*/ |