# Project initialization

## Initialize Users

In order to track geofencing events, you need to initialize a user in your Cloud4Wi account.

{% hint style="warning" %}
The method to initialize users is exposed in the WiFi SDK, so you need to integrate also the WiFi SDK into your project.
{% endhint %}

Once both the WiFi and Location SDKs are installed you can use the following snippet to initialize the customer in Cloud4Wi as soon the `deviceId` is assigned to the phone.  This function will initialize an anonymous user without any additional attribute or personal data associated.

```java
Cloud4WiSDKWiFi mobileSDK = new Cloud4WiSDKWiFi(getApplicationContext());
GeoUniq mGeoUniq = GeoUniq.getInstance(this);
            mGeoUniq.setDeviceIdListener(new GeoUniq.IDeviceIdListener() {
                @Override
                public void onDeviceIdAvailable(String deviceId) {
                    mobileSDK.setupCustomer(
                            customerCreateResponse -> {
                                Log.d("", customerCreateResponse.toString());
                            },
                            e -> {
                                Log.d("", e.getMessage());
                            });
                }
            });
```

In the alternative, you can use the native WiFi SDK methods to [initialize a customer](/dev-hub/wifi-sdk/integrating-the-sdk/android/sdk-methods/createcustomer.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://create.cloud4wi.ai/dev-hub/location-sdk/integrating-the-sdk/android/project-initialization.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
