gpt4 book ai didi

java - 运行此 GTFS 示例代码

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:12:15 25 4
gpt4 key购买 nike

我无法找到允许我读取 GTFS 数据的 API。经过大量搜索,我能够找到并运行 This代码,但实际上并没有太多的解释。我最终无法弄清楚如何获取信息并将其显示在 .xml 布局中。

问题:

  1. 我是否需要使用 onCreate 方法创建另一个类并调用这些其他类?
  2. 这个程序不需要我将值加载到数据库中吗?
  3. 在哪里可以找到可以帮助我了解如何读入、解析和显示值的 API。

最佳答案

xml、manifest的源码里什么都没有,连MainActivity.java或者任何activity都没有

所以除了使用你完全使用的类之外​​,你无能为力

能够通过阅读规范自己完成。

问题:

 1. Do I need to create another class with an onCreate method and call
these other classes?

没有 Activity ,所以没有 onCreate,没有调用方法,什么都没有。

 2. Does this program not require me to load values
into a database?

同问题一

 3. Where can I find an API that would help me understand how to read in, parse, and
display values.

您真的可以完全按照规范自行实现。这真的很简单。

无论如何,我为你做了一个例子,所以你可以使用 git clone 来获取源代码并做

随心所欲。 https://github.com/cwhsu1984/GtfsDemo.git

关于java - 运行此 GTFS 示例代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12444326/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com