public static Intent createPlatformServiceIntent(Context context) { for (NativeAppInfo appInfo : facebookAppInfoList) { Intent intent = new Intent(INTENT_ACTION_PLATFORM_SERVICE) .setPackage(appInfo.getPackage()) .addCategory(Intent.CATEGORY_DEFAULT); intent = validateServiceIntent(context, intent, appInfo); if (intent != null) { return intent; } } return null; }
public static Intent createTokenRefreshIntent(Context context) { for (NativeAppInfo appInfo : facebookAppInfoList) { Intent intent = new Intent() .setClassName(appInfo.getPackage(), FACEBOOK_TOKEN_REFRESH_ACTIVITY); intent = validateServiceIntent(context, intent, appInfo); if (intent != null) { return intent; } } return null; }
public static Intent createTokenRefreshIntent(Context context) { for (NativeAppInfo appInfo : facebookAppInfoList) { Intent intent = new Intent() .setClassName(appInfo.getPackage(), FACEBOOK_TOKEN_REFRESH_ACTIVITY); intent = validateServiceIntent(context, intent, appInfo); if (intent != null) { return intent; } } return null; }
public static Intent createPlatformServiceIntent(Context context) { for (NativeAppInfo appInfo : facebookAppInfoList) { Intent intent = new Intent(INTENT_ACTION_PLATFORM_SERVICE) .setPackage(appInfo.getPackage()) .addCategory(Intent.CATEGORY_DEFAULT); intent = validateServiceIntent(context, intent, appInfo); if (intent != null) { return intent; } } return null; }