小编Nab*_*bil的帖子

App Indexing和Deep Linking有什么区别?

我已经阅读了有关Android应用程序的App Indexin g和Deep Linking的信息.

据我所知,两者都是相同的,深度链接更容易,因为它只需要在Manifest.xml文件中添加一个intent过滤器.

  1. 那么为什么我需要使用应用程序索引?

  2. 是什么让它与深层链接不同?

需要一种不同的编码方式(android)来实现

Fire Base应用程序索引

这是一个指导Fire Base应用程序索引的链接:

https://firebase.google.com/docs/app-indexing/

这有必要吗?

android deep-linking android-app-indexing

9
推荐指数
2
解决办法
2313
查看次数

Firebase 远程配置 - 语言条件不起作用 - android

我在我的应用程序中使用了 firebase remote-config。我有两个参数 message1 和 message2,如下图所示。语言条件也可以在图像中看到(阿拉伯语和法语)。

在此处输入图片说明

用户可以选择在应用程序开始时选择应用程序语言(单独的活动),这是我用来更改语言的代码:

            Locale locale = new Locale("ar");//or "fr" if user selects french
            Locale.setDefault(locale);
            Configuration configuration = new Configuration();
            configuration.locale = locale;
            getResources().updateConfiguration(configuration, getResources().getDisplayMetrics());
Run Code Online (Sandbox Code Playgroud)

这是我用来从 firebase 获取数据的代码:

mFirebaseRemoteConfig = FirebaseRemoteConfig.getInstance();
mFirebaseRemoteConfig.setDefaults(R.xml.remote_config_defaults);

long cacheExpiration = 0;
mFirebaseRemoteConfig.fetch(cacheExpiration)
        .addOnCompleteListener(MainActivity.this, new OnCompleteListener<Void>() {
            @Override
            public void onComplete(@NonNull Task<Void> task) {
                if (task.isSuccessful()) {
                    Toast.makeText(MainActivity.this, "Fetch Succeeded",
                            Toast.LENGTH_SHORT).show();

                    // After config data is successfully fetched, it must be activated before newly fetched
                    // values are returned.
                    mFirebaseRemoteConfig.activateFetched();
                } else { …
Run Code Online (Sandbox Code Playgroud)

android firebase firebase-remote-config

5
推荐指数
1
解决办法
1889
查看次数