Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道,我们可以在 Android 上创建一个应用程序,我们可以在其中配置另一个应用程序的设置。我希望有一个应用程序的行为类似于服务器,在该服务器中完成更改并将设置加载到主应用程序中。想知道如果可能的话谢谢
阅读您的问题后,我想到了一个想法,自己尝试一下,但它 100% 会起作用。
创建一个将配置数据存储到 SharedPreference 中的应用程序。将此 SharedPreference 设为公开,以便您可以轻松地从另一个应用程序中读取。
现在在您的另一个应用程序中,您可以使用此 SharedPreference 的数据作为配置。