# How OkCredit android app improves UX writing by changing strings on the fly (and you can too!)

DevFeed: [How OkCredit android app improves UX writing by changing strings on the fly (and you can too!)](<https://devfeed.tech/articles/how-okcredit-android-app-improves-ux-writing-by-changing-strings-on-the-fly-and-you-can-too-37401.md>)

Original publisher: [Read original article](<https://medium.com/okcredit/how-okcredit-android-app-improves-ux-writing-by-changing-strings-on-the-fly-and-you-can-too-8f38da8e69b9?source=rss----40ea5327aac7---4>)

Author: Rashanjyot Singh

Published: 2022-07-13T06:31:23Z

Content type: article

Language: en

Sources: [OkCredit](<https://devfeed.tech/sources/okcredit-medium.md>)

Topics: [product-experimentation](<https://devfeed.tech/topics/product-experimentation.md>), [User Experience](<https://devfeed.tech/topics/user-experience.md>), [Internationalization (i18n)](<https://devfeed.tech/topics/i18n.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [all](<https://devfeed.tech/tags/all.md>), [amazing](<https://devfeed.tech/tags/amazing.md>), [android](<https://devfeed.tech/tags/android.md>), [android-app-development](<https://devfeed.tech/tags/android-app-development.md>), [android-library](<https://devfeed.tech/tags/android-library.md>), [app](<https://devfeed.tech/tags/app.md>), [apps](<https://devfeed.tech/tags/apps.md>), [aspect](<https://devfeed.tech/tags/aspect.md>), [blogs](<https://devfeed.tech/tags/blogs.md>), [build](<https://devfeed.tech/tags/build.md>), [business](<https://devfeed.tech/tags/business.md>), [can](<https://devfeed.tech/tags/can.md>), [change](<https://devfeed.tech/tags/change.md>), [changes](<https://devfeed.tech/tags/changes.md>), [class](<https://devfeed.tech/tags/class.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [fly](<https://devfeed.tech/tags/fly.md>), [mobile-app-development](<https://devfeed.tech/tags/mobile-app-development.md>), [okcredit](<https://devfeed.tech/tags/okcredit.md>), [strings](<https://devfeed.tech/tags/strings.md>), [ux](<https://devfeed.tech/tags/ux.md>), [ux-writing](<https://devfeed.tech/tags/ux-writing.md>), [writing](<https://devfeed.tech/tags/writing.md>)

## AI overview

OkCredit used the open-source Android library Philology to serve replacement strings through the usual `Resources.getString(...)` calls, while leaving XML resources unchanged. Philology intercepts view inflation and lets a custom repository provide a value for a string key or return null to use the XML value; OkCredit connected that data source to its in-house A/B testing setup. In an English-language cohort, an experiment targeting about 60,000 users for about 10 days found a 1.7% increase in user activation for the test variant over control. The authors report stable use over two years, but note a resource interception issue with `androidx.appcompat:appcompat:1.2.0` and warn that Philology and its ViewPump dependency were not actively maintained when they wrote the article. They mention Restring as a seemingly more actively maintained alternative, but had not evaluated it.

## Source excerpt

How OkCredit Android App improves UX writing by changing strings on the fly (and you can too!)Foreword⚠ First things first! We don't want to make any false claims, and to tell you straight off, you cannot update the strings stored as XML resources in your android app. However, we are here to tell you how we achieved that effect in OkCredit android app by using 'Philology', an open-source android library. OkCredit is a digital ledger app used by millions of small business owners and their customers daily to facilitate the recording of credit/payment transactions digitally all over India. The app supports over 11 different languages and to cater to such a diverse userbase, one key aspect is to communicate effectively. A pain point often shared by our product managers and language localization teams was that each time we wanted to experiment with strings, change/update them or make changes to translations of specific languages, we had to release a new version of the app. Hence, we wanted to have a setup that would enable us to experiment with strings faster and update them on the fly without releasing a new version of the app. Let's Get Started Like most apps, OkCredit app uses a lot of XML string resources, and an ideal implementation to set up string experimentation would be one that requires the bare minimum amount of changes in the way we conventionally fetch strings, which is using getString(...) method of the Resources class. The android developer community is amazing and that's what we realized yet again when we instantly found exactly what we needed. We figured out quite a few technical blogs and a couple of open-source libraries that explained the underlying mechanism well (hence, we won't do that much herein and simply share the relevant links). However, to build conviction that it could run flawlessly at scale, we needed to pilot the solution first-hand. After using it for numerous experiments to improve the experience for millions of our users, with this b