Code example for Activity

Methods: getSystemService

0
		return null; 
	} 
 
	public Object getSystemService(final String name) {
		final Activity activity = getActivity();
		if (activity != null) return activity.getSystemService(name);
		return null; 
	} 
 
	public AsyncTwitterWrapper getTwitterWrapper() { 
		return getApplication() != null ? getApplication().getTwitterWrapper() : null; 
	} 
 
	public void invalidateOptionsMenu() { 
		final FragmentActivity activity = getActivity();
		if (activity == null) return;
		if (activity instanceof BaseActivity) {
			((BaseActivity) activity).invalidateSupportOptionsMenu();
		} else { 
			activity.supportInvalidateOptionsMenu();
Connect your IDE to all the code out there  Get Codota for Java