用火力点实施GitHub上的Andr​​oid简单的聊天力点、用火、简单、GitHub

2023-09-12 05:48:22 作者:邮寄拥抱i

嗨任何人可以有对T如何实现在github上这个简单的安卓聊天应用程序的建议? https://github.com/firebase/AndroidChat 。我需要实现链接,行使如何创建使用火力点活一个简单的聊天应用程序为Android。它说,有更改URL中的mainactivity后来我没有任何主意。我新的火力点,并没有就如何管理应用程序的一些研究。不幸的是我所见过的GitHub的这一来源。但事实是,我没有就如何落实它的任何想法。如何碰上我认为HTML,这将是链接,我的火力网址是什么?建议你们

Hi can anybody have a suggestion on how t implements this simple android chat app in github? https://github.com/firebase/AndroidChat . i need to implement that link for exercising on how to create a simple chat application for android using firebase live. It says there to change the URL in "mainactivity" afterward i do not have any idea at all. i am new in firebase and did make some research on how to manage app. unfortunately I’ve seen this source in github. But the thing is that I don’t have any idea on how to implement it. Suggestions guys on how to run into i think HTML and it will be link on my URL in firebase?

希望有人能看到这一点。

Hoping someone can view this.

推荐答案

它说你需要的URL指向你自己的火力地堡服务器。它是免费的,易于创建。 当你站在的查看我的第一个应用程序的火力地堡中的屏幕上,你可以看到在浏览器中,这是你需要MainActivity你的火力地堡的URL。 你检查出火力地堡快速入门指南?

It says you need the URL to point to your own Firebase server. It is free and easy to create. When you stand on the Viewing my first app screen in Firebase, you can see your Firebase's URL in the browser, which is what you need in MainActivity. Have you checked out the Firebase quickstart guide?

如果你看看在你的浏览器中示例项目的中心,你可以看到这个数据结构:

If you take a look at the sample project's dashboard in your browser, you can see this data structure:

chat
  randomlyGeneratedMessageId1
    author: "jane1994"
    message: "hi there"
  randomlyGeneratedMessageId2
   author: "johndoe"
   message: "asdasd"

您将拥有相同的数据结构。如果你写的,并从示例应用程序发送邮件会自动创建。

You are going to have the same data structure. It is automatically created if you write and send a message from the example app.

编辑: 这是非常简单的比你想象的。没有本地主机或任​​何涉及。步骤:

It is much simpler than you think. No localhost or anything is involved. Steps:

有一个火力地堡帐户 请在 点击这里 现在,你可以看到所有你在云中的数据。它已经活了。如果你给的 .apk文件的任何朋友,他们跑他们的Andr​​oid设备上的应用程序,已经可以通过应用程序将数据发送到自己的服务器。 Have a Firebase account Log in Click here Now you can see all the data you have in the cloud. It is already live. If you give the .apk to any friend and they run the app on their Android device, they can already send data through the app to your own server.

EDIT2:

您发现在GitHub上的事情是一个Android Studio项目。您只能打开并采用了Android Studio中运行它。

在编译采用Android Studio中的项目,你有 .apk文件的,你可以使用它像任何其他的 .apk文件的。

After you compile the project using Android Studio and you have the .apk, you can use it as any other .apk.