> ## Documentation Index
> Fetch the complete documentation index at: https://moengage-docs-limits-messaging.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Track Install or Update

> Differentiate between app installs and updates in the MoEngage Android SDK using the setAppStatus API.

Call `setAppStatus()` so the SDK knows whether the current launch is a fresh install or an update to an existing install. The SDK doesn't infer this on its own — your app must determine the state and pass the correct enum value.

<CodeGroup>
  ```kotlin Kotlin wrap theme={null}
  // Fresh install of the app
  MoEAnalyticsHelper.setAppStatus(context, AppStatus.INSTALL)

  // Existing user who updated the app
  MoEAnalyticsHelper.setAppStatus(context, AppStatus.UPDATE)
  ```

  ```java Java theme={null}
  // Fresh install of the app
  MoEAnalyticsHelper.INSTANCE.setAppStatus(context, AppStatus.INSTALL);

  // Existing user who updated the app
  MoEAnalyticsHelper.INSTANCE.setAppStatus(context, AppStatus.UPDATE);
  ```
</CodeGroup>

<Info>
  If you uninstall and reinstall your app, the SDK considers it a fresh install.
</Info>
