> ## Documentation Index
> Fetch the complete documentation index at: https://moengage.com/docs/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.

SDK needs support to enable the update by the user application or install the application. You need to have a logic on the app side to distinguish between app *INSTALL* and *UPDATE*

<CodeGroup>
  ```Kotlin Kotlin wrap theme={null}
  //For Fresh Install of App
  MoEAnalyticsHelper.setAppStatus(context, AppStatus.INSTALL)

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

  ```Java Java theme={null}
  //For Fresh Install of App
  MoEAnalyticsHelper.INSTANCE.setAppStatus(context, AppStatus.INSTALL);

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

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