更新应用程序发布后的 RecyclerView 数据集。

huangapple go评论85阅读模式
英文:

Updating RecyclerView by new set of data after publishing the app

问题

我有一个问题,我希望有人回答。

我的问题是:

在发布应用程序到Google Play后,是否有任何方法可以在不更新应用程序本身的情况下,在回收视图中更新一些数据,比如添加一些视频、销售数据、价值等等?

实际上,我不知道如何做到这一点...

如果有关于回答这个问题的示例或网站,请与我们分享。

提前感谢。

英文:

I have a question that I would appreciate any on to answer.

my question is:

Is there any way to update some data like adding some videos, sales, values...etc in a recycle view after publishing the app in a google play without updating the app it self in the play store?

I actually don't have a clue on how to do this..

if there's any samples or websites on answering this question please share it with us.

thanks in advance

答案1

得分: 1

我能看到一种可能性,但不太规范,你可以有一个端点(/recycler),这个端点可以向你发送不同类型的数据(电影书籍之类的),你的应用程序调用这个端点,根据结果将其解析到你的一个类中,然后填充到你的可循环视图中。

我认为你不太可能在样例中找到相关内容,因为这不是人们常常做的事情。

英文:

I can see a possibility but it's dirty, you can have one endpoint (/recycler), this endpoint can send you different type of data (movies, book and such), your application calls this endpoint and upon the result you parse it into one of your class that will populate your recyclerview.

I don't think you'll find any samples about it as it's not what people tends to do.

答案2

得分: 1

如果您想要更新的数据已经写入您的代码中,我相信您在不更新应用程序本身的情况下无法进行此更新。

看起来您需要在应用程序中提供一个空间,以便您可以轻松进行更新。
您应该为您的应用程序提供一个后端,并使用API获取所需的所有信息(通过这样做,您将不需要在应用商店中更新应用程序本身)。

如果您和我一样不擅长后端开发,可以尝试使用Firebase:
https://firebase.google.com/

它将使您轻松创建应用程序的后端。您只需要更新您的应用程序一次(使其与Firebase配合工作)。之后,您只需要更新Firebase,应用程序将从其中获取所有新信息。

英文:

Well, if the data you want to update is writen in you code, I believe you can't update this without update the app itself.

It seems like you need a space on you app where you want to update it easily.
You should provide a backend to your app and consume the API to get all the info you need (with this, you will not need update the app itself on the store)

If you, like me, have no skills at backend development, give a chance to firebase:
https://firebase.google.com/

It will make easy to create a backend to your app. You'll need to update your app only once ( to make it work with firebase). After this, all you'll need to do is update you firebase, the app will get all new info from there

huangapple
  • 本文由 发表于 2020年4月6日 03:43:48
  • 转载请务必保留本文链接:https://go.coder-hub.com/61048483.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定