```
if (app_manager_foreach_app_context(GetAppContextCallback, &contexts)
    != APP_MANAGER_ERROR_NONE) {
```