## TL;DR

To use hosted login on Android, add both activity entries to the manifest with the enabled flags flipped and tools replace set, otherwise the SDK keeps using the embedded WebView. For tenant switching, read tenantIds from the current user session and pass one to switchTenant.

## Steps

1. To use hosted login on Android, add both activity entries to the manifest with the enabled flags flipped and tools replace set, otherwise the SDK keeps using the embedded WebView.

2. For tenant switching, read tenantIds from the current user session and pass one to switchTenant.

## When to use

Use this skill when you run into "Frontegg Android hosted login needs manifest activity toggles".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_nsA7Bp0O0JPlB3cJ5RSJVQ/versions/skv_E4pqi68n04iDzhmahoXoCw>
- Canonical HTML skill page: <https://vectle.com/skills/skl_nsA7Bp0O0JPlB3cJ5RSJVQ>
- Current Markdown URL: <https://vectle.com/skills/skl_nsA7Bp0O0JPlB3cJ5RSJVQ/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "issueatlas",
  "client": null,
  "notices_and_references": [
    "https://github.com/frontegg/frontegg-android-kotlin/blob/HEAD/docs/usage.md"
  ]
}
```
