Code example for Application

Methods: getApplicationContext

0
	@Override 
	public String getCurrentTimeString() {
		return DateFormat.getTimeFormat(myApplication.getApplicationContext()).format(new Date());
	} 
 
	@Override 
	public void setScreenBrightness(int percent) {
		if (myActivity != null) {
			myActivity.setScreenBrightness(percent);
		} 
	} 
 
	@Override 
	public int getScreenBrightness() { 
		return (myActivity != null) ? myActivity.getScreenBrightness() : 0;
	} 
 
	private DisplayMetrics myMetrics;
 
	@Override 
	public int getDisplayDPI() {