Code example for Activity

Methods: getSystemService

0
		return null; 
	} 
 
	public final Object getSystemService(final String name) {
		final Activity activity = getActivity();
		if (activity != null) return activity.getSystemService(name);
		return null; 
	} 
 
	public final int getTabPosition() { 
		final Bundle args = getArguments();
		return args != null ? args.getInt(INTENT_KEY_TAB_POSITION, -1) : -1;
	} 
 
	public AsyncTwitterWrapper getTwitterWrapper() { 
		return getApplication() != null ? getApplication().getTwitterWrapper() : null; 
	} 
 
	public void invalidateOptionsMenu() { 
		final Activity activity = getActivity();
		if (activity == null) return;