[{"data":1,"prerenderedAt":20},["ShallowReactive",2],{"blog-post-en-test-android-app-behavior-after-language-changes-phoma":3},{"slug":4,"lang":5,"title":6,"summary":7,"date":8,"tags":9,"tag_slugs":15,"thumbnail_url":16,"translations":17,"body":18,"asset_base":19},"test-android-app-behavior-after-language-changes-phoma","en","Test Android App Behavior After Language Changes with Phoma","Build Phoma flows that switch Android system language, launch your app, and verify that UI text, layouts, and flows still work as expected.","2026-12-02",[10,11,12,13,14],"android","phoma","localization","qa","testing",[10,11,12,13,14],"https://blog-api.phomaapp.com/api/blog/posts/test-android-app-behavior-after-language-changes-phoma/thumbnail.svg?lang=en",[5],"## Why Language Switching Belongs in Your Android Test Suite\n\nUsers do not always run your app in the language it was developed in. They change the system language to match their region, install language packs, or switch between multiple languages on the same device. When that happens, your app must load translated strings, adjust layouts for longer or shorter text, and handle right-to-left scripts without breaking.\n\nFor QA testers and app developers, checking one language once is not enough. You need to verify that the app behaves correctly after a system language change, not just at first launch. Manual testing is slow because you have to open Settings, change the language, reopen the app, click through key screens, and then repeat for every language you support.\n\nPhoma makes this repeatable because flows run on your own Windows PC and control your own Android phones over USB or Wi-Fi. Everything on your own phones is free with no limit on phones or flows, so you can add as many test devices as you need without paying per device.\n\n## What You Need Before You Start\n\n- A Windows PC with Phoma installed.\n- One or more Android phones with USB debugging enabled and connected to Phoma.\n- Your app installed on each phone.\n- A target language already available on the phone, such as Spanish, German, or Arabic.\n- Basic familiarity with Phoma’s visual flow builder and element selector picker.\n\nPhoma flows are built visually, not written as code. You pick steps in the app and choose element selectors from the running phone’s UI tree.\n\n## How Phoma Handles System Language Changes\n\nPhoma controls Android through standard UI interaction: tapping, swiping, waiting for elements, reading text, and taking screenshots. A language-change flow works by driving the Android Settings app just like a person would, then returning to your app to validate the result.\n\nBecause Phoma runs on your computer and not inside the app under test, it does not need special access inside your app. It treats Settings and your app as two separate screens to navigate between. Paid Team and Business plans are only for sharing phones and flows inside a team; running flows on your own phones remains free.\n\n## Step-by-Step: Build a Language-Change Flow\n\n### 1. Open Android Settings\n\nStart the flow by opening the Settings app. Use the “Open or close an app” step and select Settings from the app list on the connected phone. If your organization uses a customized Settings build, choose the exact package name shown in Phoma’s app picker.\n\n### 2. Navigate to Language Settings\n\nUse tap steps to move through Settings to the language screen. On most stock Android devices the path is:\n\nSettings → System → Languages & input → Languages\n\nOn Samsung, Xiaomi, or other OEM skins the menu names differ. Open Phoma’s element tree on the phone, tap each menu item as you go, and save the selector for each step. Do not rely on screen coordinates; coordinates break when the phone rotates or the UI layout changes.\n\n### 3. Add or Promote the Target Language\n\nOn the Languages screen, add the language you want to test or drag it to the top of the list. In Phoma, this is usually a tap on “Add a language,” a tap on the language name from the list, and a tap on a region variant if one appears. If you are promoting an existing language, tap the reorder control or the language row itself, depending on the Android version.\n\n### 4. Apply the Change\n\nSome Android versions apply the language immediately; others show a confirmation dialog or ask you to tap “Apply” or “OK.” Use a “Wait for an element” step so Phoma does not click the next button before the dialog appears. Then tap the confirmation button.\n\n### 5. Relaunch Your App\n\nAndroid does not always refresh an already-running app when the system language changes. Add a step to close your app and reopen it, or use the phone’s recent-apps screen to swipe it away and launch it again. This forces the app to reload resources for the new language.\n\n### 6. Verify Translated Text\n\nOnce the app is open, use “Read text” steps to capture the visible label on key screens. For example:\n\n- Home screen title\n- Primary call-to-action button\n- Empty-state message\n- Error or confirmation toast\n\nCompare the captured text against your expected translation. In Phoma you can add a condition that fails the flow if the text does not match. Example selector patterns you might see in the element tree:\n\n```\nresource-id=\"com.example.store:id/home_title\"\ntext=\"Add to Cart\"\ncontent-desc=\"main_screen_heading\"\n```\n\nChoose selectors that survive app updates. Prefer content-desc or stable resource-id values over visible text, because visible text changes when the language changes.\n\n### 7. Capture a Screenshot Checkpoint\n\nAdd a screenshot step after each major screen. Screenshots let reviewers spot layout problems such as overlapping buttons, truncated text, or icons that no longer fit. On phones with limited storage, keep only the screenshots for failed runs or for each language milestone.\n\n### 8. Restore the Original Language (Optional)\n\nIf the phone is shared among team members, end the flow by switching the language back to the default. This prevents the next tester from starting in an unexpected language. You can repeat the same Settings navigation steps in reverse.\n\n## Real-World Example: E-Commerce App in Spanish and German\n\nImagine you support English, Spanish, and German. You build one Phoma flow with a loop over a list of languages. For each language, the flow:\n\n1. Opens Settings.\n2. Sets the system language.\n3. Relaunches the store app.\n4. Reads the “Add to Cart” button text.\n5. Takes a screenshot of the product page.\n6. Asserts that the button text matches the expected translation.\n\nExpected results:\n\n| Language | Expected button text | Layout check |\n|----------|---------------------|--------------|\n| English | Add to Cart | Fits on one line |\n| Spanish | Añadir al carrito | Slightly longer, no wrap |\n| German | In den Warenkorb | Much longer; verify no overlap |\n\nIf the German text wraps awkwardly or covers the price, the screenshot shows it and the text assertion can still pass while a human reviews the image. This separates automated text validation from visual review.\n\nFor Arabic or Hebrew, add a separate flow or condition that checks layout direction. Phoma reads the text as it appears, so you can confirm that the screen flips to right-to-left and that navigation icons move to the correct side.\n\n## Making the Flow Survive App and OEM Updates\n\nApp updates often change button IDs or rearrange Settings menus. To keep your flow maintainable:\n\n- Use the UI Automator tree in Phoma to inspect elements after every app update.\n- Prefer accessibility descriptors (content-desc) because developers usually keep them stable even when visual text changes.\n- Add “Wait for an element” steps before taps, with a timeout long enough for slow devices but short enough to fail fast.\n- Use conditions to handle optional dialogs, such as a “Continue anyway” prompt that appears only on some Android versions.\n- Parameterize language names so you can add French or Japanese later without rebuilding the flow from scratch.\n\nBecause Phoma has no public CLI or SDK, version control your flow by exporting it inside the app if that option is available, or by documenting the step sequence and selectors in your team’s test repository.\n\n## Running the Same Flow on Many Test Phones\n\nPhoma lets you run one flow on many phones at once. Connect five or fifty test devices to the same Windows machine and start the language-change flow across all of them. Each phone reports its own results, so you can see which device failed to apply German or which OEM skin hid the language menu.\n\nScheduling is available for unattended runs while the app is open. This is useful for nightly localization checks: leave the phones on a desk, let Phoma cycle through languages overnight, and review the screenshots and assertions in the morning.\n\nEverything on your own phones is free with no limit on phones or flows. Paid Team and Business plans are for teams that need to share phones and flows inside a shared workspace.\n\n## Troubleshooting Common Issues\n\nApp does not reflect the new language.\nAndroid caches resources for running apps. Always close and relaunch the app after changing the system language. If it still shows the old language, clear the app’s cache from Settings or force-stop it before reopening.\n\nSettings path differs by phone manufacturer.\nDo not hardcode one path for all devices. Build separate flows for Samsung, Pixel, and Xiaomi if their Settings menus diverge, or use a conditional step that checks which Settings layout is present.\n\nElement not found after language change.\nVisible text selectors break the moment the language changes. Switch to resource-id or content-desc selectors for any element you need to click after the language switch.\n\nFlow is slow on many phones.\nReduce wait timeouts where safe, run fewer phones in parallel, and avoid taking screenshots on every step. Capture screenshots only at validation points.\n\n## What About AI in Phoma\n\nPhoma can connect to an AI agent that builds flows from plain-language descriptions, but AI is not included in any price. You bring your own AI: either an API key from a provider you choose, or your own ChatGPT or Claude subscription. The agent runs on your own AI account. You can use it to draft the initial language-change flow, then open the result in Phoma’s visual builder to check and adjust every step before running it on test phones.\n\n## Conclusion\n\nLanguage-change testing catches real problems that users experience: missing translations, broken layouts, and apps that forget which language to use. With Phoma, you can automate the entire loop—change system language, relaunch the app, verify text, and screenshot the result—without writing code. Because the flow runs on your own Windows PC and your own Android phones, it is free for unlimited phones and flows, and you only pay when you need to share phones and flows across a team.\n\nStart with one language and one phone, then expand to a loop over all supported languages. The screenshots and assertions you collect become evidence that your app is ready for users anywhere.\n","https://blog-api.phomaapp.com/api/blog/posts/test-android-app-behavior-after-language-changes-phoma/assets",1796464663535]