> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFInitialize (Android overload)

> Android overload of PFInitialize that also takes a JavaVM pointer and application Context to initialize PlayFabCore global state for Android titles.

Initializes PlayFabCore global state. Custom platform hooks must be configured prior to calling PFInitialize.

## Syntax

```cpp theme={null}
HRESULT PFInitialize(  
    XTaskQueueHandle backgroundQueue,  
    JavaVM* javaVm,  
    jobject applicationContext  
)  
```

### Parameters

**`backgroundQueue`**   XTaskQueueHandle<br />*optional*

An XTaskQueue that should be used for background work. If no queue is provided then a default (threadpool) queue will be used.

**`javaVm`**   JavaVM\*

TBD

**`applicationContext`**   jobject

TBD

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

This will internally call PFInitialize(nullptr) if it hasn't been called already by the title. If control of PFCore background work is needed, the title should explicitly call PFInitialize and PFUninitialize.

## Requirements

**Header:** PFCore.h

## See also

[PFCore members](/services/playfab/api-references/c/pfcore/pfcore_members)


## Related topics

- [PFInitialize](/services/playfab/api-references/c/pfcore/functions/pfinitialize.md)
- [PFServicesInitialize (background queue overload)](/services/playfab/api-references/c/pfservices/functions/pfservicesinitialize_2.md)
- [SDK Lifecycle](/services/playfab/sdks/c/lifecycle.md)
- [PFServicesInitialize](/services/playfab/api-references/c/pfservices/functions/pfservicesinitialize.md)
- [Services C API overview - PFCore.h](/services/playfab/api-references/c/pfcore/pfcore_members.md)
