code: public static String getTopActivityPackageName(Context context) {
  		ComponentName activity = getTopActivity(context);
  		if (activity == null) {
  			return null;
  		}
  		return activity.getPackageName();
  	}
docs: Returns Package name of top activity
  @param context Context to provide activity information
  @return String representing package name of top activity