Code example for ContextWrapper

	public Boolean needsContext() {
		return true;	} 
	public Void setContext(Context newcontext) {
		context = new ContextWrapper(newcontext);
		return null; 
	public Void run(final Handler handler) {
		final TelephonyManager TelManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
		final PhoneStateListener mSignalListener = new PhoneStateListener(){ 
			public void onSignalStrengthsChanged(SignalStrength signalStrength) 
				if (signalStrength.isGsm()) 
					ASU = signalStrength.getGsmSignalStrength(); 
Connect your IDE to all the code out there  Get Codota for Java